home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d6 / zipkey2.arc / ZIPKEY.DOC < prev    next >
Text File  |  1991-02-01  |  137KB  |  2,999 lines

  1. ZIPKEY zipcode directory program  V2.00       January 30, 1991
  2.  
  3. The entire package is Copyright 1989,1990,1991 Eric Isaacson.
  4. All rights reserved.
  5.  
  6.    Eric Isaacson Software
  7.    416 E. University Ave.
  8.    Bloomington, IN 47401-4739
  9.    (812)339-1811
  10.  
  11. PLEASE read Chapter 1 for legal terms, how to register/subscribe
  12. for the package, and the overview of the program.  Just type
  13. ZIPKEY if you don't like reading manuals.
  14.  
  15. This DOC file is an entire manual-- over 50 pages.  I have
  16. formatted this file so that it can be printed at 10cpi with
  17. margins.  To save space, I don't have a left margin in the file.
  18. You'll need to set your printer to a one-inch left margin to have
  19. room to punch holes for a ring binder.
  20.  
  21. If you got ZIPKEY from an XYZ software house, that advertises
  22. great software for $5 per disk, and you are now confused as to
  23. your rights, you might ask the following
  24.  
  25. QUESTION: "What's going on here?  Have I already bought the
  26.   program, or what?"
  27.  
  28. ANSWER: Well, no, not exactly.  You've bought a disk that has
  29.   great software on it; unless you legally purchased the
  30.   registered version of ZIPKEY, you haven't bought the software
  31.   yet.  ZIPKEY, like most major software offered by the
  32.   $5-per-disk distribution houses, is free-distribution software
  33.   (also known as "shareware", or "user-supported software").
  34.   That means I retain the rights to ZIPKEY, but I choose to let
  35.   people pass the evaluation copy around.  I have no business
  36.   relationship with any distribution houses in the U.S.; I don't
  37.   get a penny of the $5 (or whatever) you paid them for the disk
  38.   containing ZIPKEY.  So I need and expect to be paid by you,
  39.   because I make my living out of making and supporting shareware
  40.   products.
  41.  
  42.   Some distribution houses do a pretty poor job of revealing the
  43.   shareware nature of the software they sell.  If you thought you
  44.   had purchased the software free and clear, you might feel
  45.   justified in being angry with them for having misled you.  And
  46.   you might look around for houses that do a better job of
  47.   informing the public.  But I hope you'll take the time to
  48.   consider everybody's role in the shareware marketing scene; if
  49.   you do, I think you'll conclude that although you may have been
  50.   misled, you haven't really been cheated out of anything.
  51.  
  52.   Shareware is great for authors like me, who have spent all
  53.   their years in their computer holes, learning to be great
  54.   programmers, and no time in business school learning marketing
  55.   and distribution techniques.  We simply cast our programs to
  56.   the winds.  They are distributed at practically no cost to us.
  57.   That's why we can charge a lot less than the cost of
  58.   "commercial" software.
  59.                                                               0-2
  60.  
  61.   Shareware is also great for customers like you.  You can try
  62.   out the software before paying for it.  You'll know that a
  63.   successful shareware product is good, because only satisfied
  64.   customers pay for it.  The existence of shareware infuses
  65.   healthy competition into the entire software market, for both
  66.   price and quality.  In the case of ZIPKEY, I'm utterly
  67.   convinced that you'll never find a better value for a zipcode
  68.   directory, anywhere.
  69.  
  70.   Finally, let's consider the distribution houses.  They provide
  71.   a legitimate service, for which they charge a reasonable price.
  72.   The best houses act as librarians, evaluating and cataloguing
  73.   software.  Most pay thousands of dollars for advertising.
  74.   Their cut is far less than the distributor's cut for
  75.   "commercial" software (they prosper because their volume is
  76.   bigger and their support responsibilities are smaller).  Most
  77.   customers for the distribution houses are repeat customers, who
  78.   are aware of, and happy with, what they are getting.  If it
  79.   weren't for your XYZ House, you might never have heard of
  80.   ZIPKEY, or might never have figured out where to obtain it.
  81.  
  82.   So I hope you'll be happy with shareware, and actively desire
  83.   to support it.  You'll feel good about promoting a healthy
  84.   situation for everybody.  And you'll encourage the best
  85.   programmers in the world to keep writing for you, instead of
  86.   for the big corporations.
  87.  
  88. Now that I've said that, let's move on to the package.   The
  89. ZIPKEY evaluation package consists of the program ZIPKEY.EXE, the
  90. database file ZIPKEY.OVL, this manual ZIPKEY.DOC, and ZPROG.DOC,
  91. a supplement for programmers.
  92.  
  93.  
  94.  
  95. TABLE OF CONTENTS
  96.  
  97.  
  98. CHAPTER 1  INTRODUCTION AND LEGAL TERMS
  99.  
  100. Overview of This Manual                                     1-1
  101. Overview of ZIPKEY                                          1-1
  102. What ZIPKEY Doesn't Do                                      1-2
  103. Operating Requirements                                      1-3
  104. Legal Terms                                                 1-3
  105. Legal Conditions for Free Distribution                      1-4
  106. Sources and Copyright Status of ZIPKEY's Database           1-5
  107. Difference Between the Evaluation and Registered Versions   1-6
  108. Naming Conventions for Distribution                         1-7
  109. About the Author                                            1-8
  110. How to Contact Me                                           1-8
  111.                                                               0-3
  112.  
  113. CHAPTER 2  LOOKING UP ZIPCODES
  114.  
  115. Demonstration Mode                             2-1
  116. Signon Window                                  2-1
  117. Zipcode Search                                 2-2
  118. Arrow and Paging Keys During Zipcode Search    2-4
  119. State and City Search                          2-5
  120. Multiple Zipcode Cities                        2-6
  121. City Only Search                               2-7
  122. Moving From State to State                     2-7
  123. Unabbreviation                                 2-8
  124. Telephone Area Code Search                     2-8
  125. Repeat Last Zipcode                            2-8
  126.  
  127.  
  128. CHAPTER 3  ZIPKEY CONFIGURATION
  129.  
  130. Determining Your Configuration Needs      3-1
  131. How to Create a ZC File                   3-2
  132. Default Options                           3-2
  133. Memory Model                              3-3
  134. Intermediate Results                      3-4
  135. Numlock On                                3-4
  136. Slow Down Keyboard                        3-4
  137. Window Characteristics                    3-5
  138. Monochrome and Color Window Settings      3-6
  139. Hotkey Configuration                      3-6
  140. Hotkey Name                               3-6
  141. Zipcode Source                            3-8
  142. Format of City/State/Zip Keystrokes      3-10
  143. Multiple Hotkeys                         3-12
  144. Exit Keys                                3-13
  145. Configuration Editing Menu               3-14
  146. Named Configuration Files                3-14
  147. Modifying Configuration Files            3-15
  148. More Hotkey Examples                     3-15
  149. Conclusion                               3-16
  150.  
  151.  
  152. CHAPTER 4  RUNNING MEMORY-RESIDENT ZIPKEY
  153.  
  154. Installing ZIPKEY as a Memory-Resident Program     4-1
  155. Correcting Your Configuration                      4-2
  156. Uninstalling ZIPKEY                                4-3
  157. Re-installing a New Configuration                  4-3
  158. Making ZIPKEY Permanently Available                4-4
  159. ZIPKEY and Other Memory-Resident Programs          4-4
  160. Finding ZIPKEY Files on Your Disk                  4-5
  161. Installing Files on a Network                      4-7
  162.                                                               0-4
  163.  
  164. CHAPTER 5 GENERATING AN ORDER FORM
  165.  
  166. Automatic Order-Form Generation            5-1
  167. ZIPKEY's Schedule of Prices                5-1
  168. Gathering Your Order Information           5-2
  169. Answering the Order-Form Questionnaire     5-3
  170. Possible Amendments to the Total Price     5-3
  171.  
  172.  
  173. CHAPTER 6 PROGRAMMATIC INTERFACE
  174.  
  175. INDEX
  176.  
  177. CHAPTER 1   INTRODUCTION AND LEGAL TERMS
  178.  
  179.  
  180. Overview of This Manual
  181.  
  182. Welcome to ZIPKEY!  I've tried to make the ZIPKEY program as
  183. self-explanatory as possible, so that you won't need to consult
  184. this manual very much.  I believe I have succeeded to the extent
  185. that if you're a somewhat experienced computer user, you'll be
  186. able to figure out the program on its own.  But ZIPKEY is a
  187. complex program with a fair number of sophisticated features.  If
  188. you're a less experienced computer user, or if you'd like to
  189. explore every nook and cranny of ZIPKEY's functionality, you'll
  190. want to read this manual.  It describes ZIPKEY in more detail
  191. than the built-in documentation, and provides examples you can
  192. work through as you read.
  193.  
  194. Some of this manual (especially in Chapters 2 and 3) tries to do
  195. double duty, as both a tutorial and a reference guide.  A
  196. tutorial is intended to be read from start to finish; it may
  197. contain a thread of discussion that runs from section to section.
  198. A reference guide is intended to be consulted a section at a
  199. time, to look up specific facts; it may repeat information so
  200. that the user doesn't need to read the whole manual to obtain the
  201. desired fact.  I've tried to keep the tutorial-vs.-reference
  202. annoyances to a minimum: the continuing (tutorial) threads are
  203. restricted to the more elaborate examples presented; I hope they
  204. are easy enough to pick up when you consult a section as a
  205. reference.  And I have tried to organize things to keep
  206. repetitions to a minimum, so you can read the manual as a
  207. tutorial.
  208.  
  209. I would, of course, like you to read this first chapter,
  210. including the legal terms and conditions pertaining to the
  211. program.  Then, if you're just getting started with ZIPKEY, you
  212. should read through Chapter 2 while running ZIPKEY in
  213. demonstration mode, to follow the examples and gain a familiarity
  214. with all of ZIPKEY's search capabilities.  Chapter 3 tells you
  215. how to configure ZIPKEY for memory-resident use, and Chapter 4
  216. tells you how to set up the files on your computer so that ZIPKEY
  217. is permanently available.  Chapter 5 gives you details about
  218. ZIPKEY's built-in facility for creating an order form to
  219. subscribe to ZIPKEY and regularly receive fresh data.  Chapter 6
  220. is for computer programmers who wish to access ZIPKEY's functions
  221. from within their programs.
  222.  
  223.  
  224. Overview of ZIPKEY
  225.  
  226. ZIPKEY is a complete city-level directory of 5-digit United
  227. States zipcodes and 3-digit telephone area codes, combined with a
  228. keyboard enhancement program.  The goal of ZIPKEY is to provide
  229. enough power and flexibility so that no one with an IBM-PC (or
  230. hardware-compatible computer) will ever again have to manually
  231. type in the name of a United States city or town (at least not
  232. one big enough to have its own zipcode).
  233.                                                               1-2
  234.  
  235. When run as an ordinary program, ZIPKEY allows you to instantly
  236. access any of the 42000+ zipcodes in the directory, searching by
  237. zipcode, state-and-city, city-only, or area code.  If you want to
  238. use ZIPKEY just to occasionally look up a zipcode or area code,
  239. you simply choose main-menu option 2 and follow the prompts.
  240.  
  241. ZIPKEY achieves its full power when installed permanently in
  242. memory.  In this "memory-resident" mode, you can invoke ZIPKEY
  243. from within any other program (a word processor, a data-base
  244. manager, etc.).  You can type just a 5-digit zipcode, and ZIPKEY
  245. will fool the program you're running into thinking that you have
  246. typed any or all of the following: the city name, the state name
  247. and/or abbreviation, the zipcode, the area code, and any other
  248. combination of fixed keystrokes.  This "keystroke output" can be
  249. in any format that you wish.
  250.  
  251. ZIPKEY is completely configurable.  You can specify any
  252. combination of keystrokes (the "hotkey") that will invoke ZIPKEY
  253. when you're running another program.  You can also specify
  254. alternate hotkeys to allow differing sources of zipcode
  255. specifications (repeat the last zipcode, use a fixed sequence of
  256. first digits, or get the zipcode from your screen), and/or a
  257. differing format when ZIPKEY feeds the city/state/zip back
  258. through your keyboard.  You may have up to 99 different hotkeys.
  259. Your configuration is stored in a disk file, which is
  260. automatically read by ZIPKEY whenever it is invoked.
  261.  
  262. ZIPKEY has a sophisticated abbreviation algorithm, allowing you
  263. to specify a limit to the length of the city name, so that it
  264. will fit into a fixed field.
  265.  
  266. ZIPKEY's database is based on data from numerous sources,
  267. including the U.S. Postal Service.  It has been extensively
  268. cross-checked to ensure accuracy and consistency.  The data is
  269. highly compressed, so it won't occupy very much space on your
  270. disk or in memory.  The compression method was custom-designed
  271. for this database, providing for maximum compaction while
  272. retaining instant access.  It occupies less than 128K bytes (less
  273. than 3 bytes per entry), small enough to allow installation of
  274. the data base in either LIM-EMS or main memory.  But access to
  275. the data is fast enough so that it is perfectly reasonable to
  276. leave the database on your hard or RAM disk.
  277.  
  278.  
  279. What ZIPKEY Doesn't Do
  280.  
  281. ZIPKEY's database doesn't contain street names, so ZIPKEY can't
  282. tell you the exact zipcode for a street address within a city
  283. that has more than one zipcode.  Such a database would occupy
  284. megabytes, even with ZIPKEY's rate of compression.  Right now I
  285. consider that too big for mass distribution; but in the coming
  286. years, when storage capacities increase, I hope to offer such a
  287. database.
  288.                                                               1-3
  289.  
  290. ZIPKEY has been tested against all the major database managers,
  291. word processors, and spreadsheets, and works fine with the vast
  292. majority of them. But there are some programs that ZIPKEY is
  293. incompatible with.  Here are the problems that I know about and
  294. haven't been able to solve:  Keystroke playback doesn't work
  295. within Microsoft Works, which apparently ignores the usual
  296. keyboard drivers in your computer.  ProKey 2.1 causes problems,
  297. but 4.0 works fine.  Microsoft Word 4.0 doesn't allow typeahead
  298. within ZIPKEY's window so you must either disable intermediate
  299. results or type slowly -- Word 5.0 solved this problem.  NamePal
  300. 1.4 has a bug that limits playback to 15 keystrokes.
  301.  
  302.  
  303.  
  304. Operating Requirements
  305.  
  306. ZIPKEY requires an IBM-PC, IBM-PC AT, or 100% hardware-compatible
  307. computer with at least 256K bytes of memory, running MS-DOS V2.0
  308. or later.  A hard disk is not required but is recommended unless
  309. you have lots of memory to store ZIPKEY's data after it is
  310. installed.
  311.  
  312. Most of the "clone" computers work fine running ZIPKEY.  The
  313. areas of compatibility needed are in the memory-mapping of the
  314. video interface, the BIOS variables and buffers managing both
  315. video and keyboard, the timer-interrupt hardware, and the
  316. keyboard-interrupt mechanism.  Some computers are compatible
  317. except for the mapping of internal codes passed from the keyboard
  318. to the computer.  For those computers, ZIPKEY will work properly
  319. except during configuration, when the wrong names are displayed
  320. for the hotkeys.
  321.  
  322.  
  323. Legal Terms
  324.  
  325. ZIPKEY is a copyrighted work -- it is not and never has been in
  326. the public domain.  Each release of the ZIPKEY program comes in
  327. two versions: ZIPKEY.EXE, the evaluation copy, may be copied and
  328. distributed to others, subject to the conditions I'm about to
  329. describe.  The other version ZIPKEY.COM, the registered user's
  330. copy, is subject to the same legal restrictions as
  331. traditionally-distributed ("commercial") software.  Neither
  332. version has any physical copy-protection schemes.
  333.  
  334. WARNING: Before installing this or ANY new software, you should
  335. BACK UP any valuable data on your computer system.  ZIPKEY has
  336. been extensively tested on numerous different machines, and it is
  337. believed to be reliable and non-harmful.  However, software is
  338. the most complicated kind of product there is.  No mortal human
  339. can be absolutely and completely certain that a piece of
  340. complicated software will work on any given machine.  So you are
  341. completely responsible for determining the fitness or usability
  342. of this package.  I will not be liable for damages of any kind,
  343. including but not limited to lost sales or profits, arising from
  344. any failure of this package to perform as expected.
  345.                                                               1-4
  346.  
  347. If you have the evaluation copy ZIPKEY.EXE, I hereby grant you
  348. permission to install this version of ZIPKEY in its
  349. memory-resident mode for up to one month.  After that, you must
  350. either remove ZIPKEY from your system, or subscribe -- option 5
  351. of the main menu (described in detail in Chapter 5) will create
  352. an order form for you.
  353.  
  354. If you have the registered copy ZIPKEY.COM, you may install it
  355. only on those computers servicing the keyboards you have
  356. licensed.  You may make copies for backup and archival purposes.
  357. You may not allow the registered copy to be run from more
  358. keyboards than you have licensed.  The license for running ZIPKEY
  359. in its non-memory resident (demonstration) mode is permanent --
  360. you don't need to renew unless and until you want fresh data.
  361. The license for running ZIPKEY in its memory-resident mode
  362. (hotkeys, key playback, and/or program interface) is paid by the
  363. year, according to the rate schedule published in Chapter 5, and
  364. built into the order-form section of ZIPKEY, option 5 of ZIPKEY's
  365. main menu.
  366.  
  367. A simple registration for a single keyboard, with printed manual
  368. and one disk with the latest data, is $30.  Update disks are $25
  369. apiece.  Again, the license is permanent if you use ZIPKEY only
  370. in demonstration mode; it is good for one year if you use ZIPKEY
  371. in memory-resident mode.
  372.  
  373. If you are a casual user -- only calling up ZIPKEY occasionally
  374. in non-memory-resident mode for private, non-commercial use --
  375. then your subscription is optional.  You may send however much
  376. money you feel the program is worth to you.  If you send $30
  377. ($31.50 in Indiana), you'll get the printed manual and a disk
  378. with the registered version of the program and the most current
  379. database.  Your support is much appreciated, and will encourage
  380. the continued production of high-quality "try before you buy"
  381. software.
  382.  
  383. I reserve the legal right to change legal terms and prices for
  384. future versions without prior notice.  At the present time I have
  385. no plans to change prices until inflation has seriously reduced
  386. the value of the dollar (by, say, at least a third off its 1989
  387. value).  I will never consider you committed to a higher price
  388. before being advised of the price-- you'll always have the option
  389. to cancel your subscription and receive a refund for unused time.
  390.  
  391.  
  392. Legal Conditions for Free Distribution
  393.  
  394. Here are the conditions for free distribution of the evaluation
  395. version of ZIPKEY:
  396.  
  397. 1. You may copy the disk-file version of this manual, the
  398.    evaluation version ZIPKEY.EXE, and any version of ZIPKEY.OVL
  399.    more than six months old, and give them to anyone who accepts
  400.    all the legal terms spelled out in this chapter.  The copies
  401.    you distribute must be complete and unmodified.  You are
  402.    specifically prohibited from distributing the ZIPKEY.OVL data
  403.    in any unpacked format, or any format other than ZIPKEY.OVL.
  404.                                                               1-5
  405.  
  406.    Each ZIPKEY.OVL file that I distribute begins with a copyright
  407.    message containing the date after which the file can be
  408.    distributed freely.
  409.  
  410. 2. No part of ZIPKEY may be sold to anyone without my prior
  411.    written permission.  If the package is distributed on a
  412.    diskette, any fees collected must be specified as
  413.    materials/handling, and may not exceed $10 for the diskette.
  414.    Thus, I am allowing shareware distribution houses to
  415.    distribute the evaluation version of ZIPKEY, as long as they
  416.    don't try to deceive their customers into thinking they have
  417.    bought the full rights to the program.
  418.  
  419. 3. I reserve the right to prohibit specific individuals and/or
  420.    companies from distributing any or all of my copyrighted
  421.    works.  If I exercise this right, I shall inform such
  422.    individuals/companies in writing, by certified letter.
  423.  
  424.    So far, I have exercised this right against only one company,
  425.    Sizzleware.  They received a prohibition against distributing
  426.    my A86/D86 packages after they marked the packages Public
  427.    Domain in their catalog, and then neglected to change the
  428.    entry in the next catalog.  The subsequent catalog was
  429.    published three months after I wrote them and they wrote back
  430.    saying they would make the change.  It is my impression that
  431.    this was sheer carelessness on their part; but the mistake,
  432.    particularly after they were notified and had three months to
  433.    correct it, was a grave one.  I considered the prohibition
  434.    necessary to protect my copyright.  The prohibition was lifted
  435.    when they published a catalog with a corrected entry for
  436.    A86/D86.
  437.  
  438.  
  439. Sources and Copyright Status of ZIPKEY's Database
  440.  
  441. ZIPKEY's database consists of over 42000 zipcode entries,
  442. covering over 31000 different cities and towns.  It was created
  443. using numerous different references, most notably the data files
  444. provided by the U.S. Postal Service correlated against the cities
  445. and zipcodes from the 150000-entry database of a fair-sized mail
  446. order firm.  The latter "real-world" data provided much better
  447. accuracy in terms of the city names people actually use for their
  448. own addresses, as opposed to the Postal Service's
  449. officially-designated "primary city" for a zipcode.  The
  450. following references were also used, as a part of an extensive
  451. cross-checking and verification effort:
  452.  
  453.    * maps and lists from several dozen telephone directories
  454.  
  455.    * U.S. Census data files
  456.  
  457.    * USPS National Five-Digit Zip Code & Post Office Directory
  458.  
  459.    * AAA Road Atlas
  460.  
  461.    * Rand McNally Commercial Atlas and Marketing Guide
  462.                                                               1-6
  463.  
  464.    * National Atlas of the United States of America
  465.  
  466.    * Rand McNally Road Atlas
  467.  
  468.    * Bellcore Telephone Area Code Directory
  469.  
  470.    * ATT's ZIP-PHONE files
  471.  
  472. The resulting ZIPKEY database differs by thousands of entries
  473. from any database that could be derived by mechanical means from
  474. any of the sources I have mentioned.  It is much more accurate
  475. than any of the sources for its purpose: to provide the city name
  476. actually used by the most people in a given zipcode.
  477.  
  478. So the ZIPKEY database contains a large body of information that
  479. is public knowledge, but at the same time represents a
  480. substantial creative compilation effort.  It enjoys the same
  481. copyright protection as other reference works, such as
  482. dictionaries, that contain compilation effort.  You may use the
  483. ZIPKEY database as a reference source, but you cannot simply
  484. unpack and publish the database without independently
  485. cross-checking and verifying the entire work, and adding
  486. substantial effort to make it your own.  If you do such
  487. unverified publishing, you will be in violation of federal
  488. criminal copyright law.
  489.  
  490. Note that a skilled programmer can use ZIPKEY's programmatic
  491. interface to unpack ZIPKEY.OVL into an ASCII format.  Again, I
  492. emphasize that the data in ASCII still contains my creative
  493. compilation effort, and is still under my copyright.  You may
  494. create and manipulate such a data file from the keyboards for
  495. which ZIPKEY is licensed, but you are specifically prohibited
  496. from distributing such data to non-licensed computers, or in any
  497. printed format.
  498.  
  499.  
  500. Difference Between the Evaluation and Registered Versions
  501.  
  502. The evaluation copy of ZIPKEY has full functionality.  The only
  503. differences between the evaluation and registered versions are as
  504. follows:
  505.  
  506. 1. The evaluation version is distributed as an EXE file, and the
  507.    registered version is distributed as a COM file.
  508.  
  509. 2. The version number, that appears on the console when ZIPKEY is
  510.    run and also on the signon popup window, has an "e" appended
  511.    to it for the evaluation copy.
  512.  
  513. 3. Some of the help messages of the program are different, to
  514.    reflect the program's registered vs. evaluation status.  But
  515.    there is no missing information in the evaluation copy.
  516.                                                               1-7
  517.  
  518. 4. When you issue the ZIPKEY 4 command (typically in AUTOEXEC.BAT
  519.    when the computer is started up), the evaluation copy of
  520.    ZIPKEY will check dates before it executes your command to
  521.    install ZIPKEY in memory.  If it is now the second month after
  522.    you have created a ZC file, ZIPKEY reminds you that you need
  523.    to register, and invites you to fill out an order form.  You
  524.    can type N to the invitation and ZIPKEY will be installed
  525.    normally and work just fine.  I'm just hoping you'll get tired
  526.    of having to type that N every time you start your computer,
  527.    and send for the registered copy.
  528.  
  529. 5. The evaluation copy will refuse to install a ZIPKEY.OVL
  530.    database whose free distribution is not yet allowed (less than
  531.    six months old).  If everyone follows the distribution rules,
  532.    this prohibition should never be encountered.
  533.  
  534.  
  535. Naming Conventions for Distribution
  536.  
  537. This section describes the naming conventions I'd like you to use
  538. when distributing files, especially on bulletin-board systems.
  539. I'm not putting any legal insistence behind these conventions;
  540. I'm just giving them so that there can be standardization.  If
  541. their names follow these conventions, my files should be easier
  542. to find on BBS's, and there should be less duplication of
  543. identical files with different names.
  544.  
  545. If you distribute files in a compressed format, using PKZIP, ARC,
  546. ZOO, or a similar program, I recommend that the evaluation
  547. ZIPKEY.EXE file and the manual be packed together into one file,
  548. and the ZIPKEY.OVL file be provided as a second file.
  549.  
  550. If you are a BBS sysop, with the ability to delete files on your
  551. BBS, you can maintain the single name ZIPKEY for the package.
  552. The compressed EXE-and-manual file can have the extension (.ZIP,
  553. .ARC, etc.) reflecting the compressing program used.  The OVL
  554. file can keep its name ZIPKEY.OVL.  ZIPKEY.OVL does not need to
  555. be compressed-- it's already so compact that there is little or
  556. no further gain from compression.
  557.  
  558. If you are uploading to a BBS on which you cannot delete the
  559. previous version, I suggest that the names contain the version
  560. information. The EXE-and-manual file should be named ZKxx, where
  561. xx is the ZIPKEY.EXE version number -- for example, ZK20.ARC for
  562. ZIPKEY V2.0e.  The ZIPKEY.OVL file should be stored using a
  563. compression program (not for the compression, which is minimal,
  564. but so that the file will be named ZIPKEY.OVL again when it is
  565. extracted).  The compressed OVL file should be named ZKmmyy,
  566. where mm is the 2-digit month and yy is the year of the ZIPKEY
  567. database -- for example, ZK0890.ARC for the August, 1990 version
  568. of the data.
  569.  
  570. Here are sample directory lines for ARC files, including
  571. recommended comment lines:
  572.  
  573. ZK20.ARC         ZIPKEY zipcode dir V2.0 prog/doc, 1 of 2
  574. ZK0890.ARC       ZIPKEY.OVL 08/90 zipcode data,    2 of 2
  575.                                                               1-8
  576.  
  577. Note that the data file does NOT contain the program version
  578. number in its comment line.  I will be releasing new data files
  579. more often than new program versions, so that the data file is
  580. not married to the program version number.  People will be able
  581. to download new data files even if they already have the latest
  582. program version.
  583.  
  584.  
  585. About the Author
  586.  
  587. I am a professional software author.  I have been programming for
  588. myself since 1965, and professionally since 1975.  I worked for
  589. Intel Corporation for several years, first as a subcontractor,
  590. then as an employee, and then as an independent contractor.  I
  591. have also done contract work for numerous other software firms.
  592. In 1986 I started marketing programs directly to the public,
  593. releasing my A86 assembler and D86 debugger packages as
  594. shareware.  I have been making a living from A86/D86 receipts
  595. since 1987, supporting myself, my wife, and my daughter.  A86 is
  596. my first (computer) love, and I will continue to support and
  597. improve it-- ZIPKEY was developed using A86/D86, and I refuse to
  598. write code using anyone else's compilers.  But the market for
  599. assemblers is rather narrow, fiercely competitive, and
  600. surprisingly crowded with products.  I didn't think I would make
  601. a living indefinitely from A86/D86 alone.
  602.  
  603. Enter ZIPKEY.  In the summer of 1988 I was persuaded by a friend
  604. that the world needed a zipcode-directory and
  605. keyboard-enhancement program.  I naively thought I could complete
  606. the program in about ten weeks.  At my level of experience I
  607. should have known better-- the first release took about seven
  608. months of full-time work.  (My only consolation for this
  609. scheduling embarrassment is that another friend of mine, with
  610. even more experience in computers than I have, thinks that he
  611. could have produced a marketable product in about one week!)  The
  612. resulting product is much more powerful and elaborate than the
  613. original vision.  The extra time spent also reflects the
  614. difference between a software tool and a professional-quality
  615. software product -- self-documentation, internal error detection
  616. for "bullet-proof" operation, configurability to anticipate a
  617. wide range of uses, and extensive testing in the field to enhance
  618. the program's design as well as its reliability.
  619.  
  620.  
  621. How to Contact Me
  622.  
  623. I have no plans to move from my present location at least through
  624. the millennium.  So you can write to:
  625.  
  626.     Eric Isaacson Software
  627.     416 East University Ave.
  628.     Bloomington, IN 47401-4739
  629.  
  630. or call (812)339-1811.
  631.                                                               1-9
  632.  
  633. Sorry, I can't guarantee to return everybody's long distance
  634. calls.  If you'd like to be SURE I'll get back to you, please
  635. invite me to call you back collect, or tell me to charge the cost
  636. of the call to your credit card.
  637.  
  638. I also accept BBS mail at PC-Link Central, (812)855-7252, which I
  639. try to check into daily.  Type J 3 when you get on that system,
  640. to reach my conference.  I also check into Compuserve every 10
  641. days or so-- my ID number there is 71520,74.
  642.  
  643. If you have extraordinary difficulty contacting me, write the ASP
  644. Ombudsman, 545 Grover Road, Muskegon, MI 49442-9427.  He'll also
  645. try to mediate any business problems people might have with
  646. shareware authors or distributors.
  647.  
  648. PLEASE contact me if you find bugs in my programs; I'll fix them!
  649. I accept bug reports from anyone, registered or non-registered,
  650. no questions asked.  It's very frustrating to hear about people
  651. telling each other about bugs, and not telling me.  I still await
  652. Greg Wettstein's A86 bug list.
  653.  
  654. CHAPTER 2   LOOKING UP ZIPCODES
  655.  
  656.  
  657. In this chapter we'll explore all of ZIPKEY's search
  658. capabilities, accessible from ZIPKEY's popup window.  As you read
  659. along, you can execute the examples given from ZIPKEY's
  660. demonstration mode, which pops up the ZIPKEY window without
  661. installing ZIPKEY as a program permanently resident in your
  662. computer's memory.  Occasionally I'll talk about what happens in
  663. the keystroke playback sequence, which occurs in ZIPKEY's
  664. memory-resident mode.  Those features will show themselves after
  665. you've configured ZIPKEY and then installed the program
  666. permanently in memory, as described in Chapters 3 and 4.
  667.  
  668.  
  669. Demonstration Mode
  670.  
  671. You can enter ZIPKEY's demonstration mode by selecting option 2
  672. from ZIPKEY's main menu, or directly from the DOS command prompt
  673. by typing
  674.  
  675.    ZIPKEY 2
  676.  
  677. followed by the Enter key.  If there is enough memory, ZIPKEY
  678. will load the entire zipcode database into memory for the
  679. demonstration.  If you are running ZIPKEY from a floppy disk,
  680. this will take a few seconds (but the subsequent searches will be
  681. breathtakingly fast if you're accustomed to floppy access speeds
  682. for data lookup).  After the data is loaded, ZIPKEY's window will
  683. pop up onto your screen, with the ZIPKEY signon message.  As long
  684. as any ZIPKEY window is on the screen, it will tell you what
  685. ZIPKEY expects you to be typing next, at or near the blinking
  686. cursor.  Whenever the popup window is visible (whether in
  687. demonstration mode or memory-resident mode), you can return to
  688. the signon window by pressing the Home key, or you can pop away
  689. the window by pressing the Esc key.
  690.  
  691. Whenever a zipcode specification is complete, ZIPKEY invites you
  692. to confirm the entry by typing the Enter key.  In demonstration
  693. mode, this will simply return you to the signon window, ready to
  694. type another specification.  Later, when you install ZIPKEY as a
  695. memory-resident program, the confirming Enter will initiate the
  696. keystroke playback sequence, in which ZIPKEY fools your computer
  697. (and whatever program you are running) into thinking you have
  698. typed a complete city/state/zip combination.
  699.  
  700.  
  701. Signon Window
  702.  
  703. The signon window contains information establishing my copyright
  704. and advertising my name and address.  It also tells whether you
  705. are running the evaluation copy of the program or the registered
  706. user's copy.  This information exists to remind you that ZIPKEY
  707. is not in the public domain, and that I appreciate being paid for
  708. my efforts.  But it doesn't waste your time-- you can start
  709. typing your zipcode specification right away.
  710.  
  711. The blinking cursor appears just beyond the prompt indicating
  712. each of the four types of zipcode search available to you:
  713.                                                               2-2
  714.  
  715. 1. If you type a digit (0 through 9), ZIPKEY treats it as the
  716.    start of a zipcode to look up.
  717.  
  718. 2. If you type a letter, ZIPKEY assumes you are typing a
  719.    two-letter state abbreviation, to be followed by a city name.
  720.  
  721. 3. If you type a question mark, you are signalling ZIPKEY that a
  722.    city name without a state will follow.  For convenience, the
  723.    unshifted / does the same thing.
  724.  
  725. 4. If you type a left square bracket [, you are signalling ZIPKEY
  726.    that a telephone area code will follow.
  727.  
  728. There is a fifth specification type, not mentioned explicitly on
  729. the window: the quote mark " to repeat the last zipcode.
  730.  
  731. We'll discuss each search type individually in the following
  732. sections.
  733.  
  734.  
  735. Zipcode Search
  736.  
  737. The zipcode search is simple: you type in a five-digit zipcode,
  738. and ZIPKEY instantly tells you the associated city, if there is
  739. one, with its state and area code.  If the zipcode isn't in the
  740. directory, ZIPKEY will tell you and try to make a guess as to
  741. what city it might be. You can either accept the guess with a
  742. confirming Enter key, correct the entry with the backspace key,
  743. or explore nearby zipcodes with the arrow keys (described
  744. shortly).
  745.  
  746. ZIPKEY is so fast that it can afford to display intermediate
  747. results as you type each digit of the zipcode.  Most people will
  748. ignore these results when typing in most zipcodes-- they are
  749. frills added to make ZIPKEY a little more convenient (and more
  750. fun).  Here is a description of what you see after each digit,
  751. that you can follow while typing the sample zipcode 47125:
  752.  
  753. 1. After you type one digit, ZIPKEY lists the possible states
  754.    having zipcodes with that first digit.  If a state from this
  755.    list has a zipcode after it, that is the only zipcode from
  756.    that state having the indicated first digit.  For example,
  757.    type 4 when you see ZIPKEY's signon window.  The list of
  758.    states includes Wisconsin 49936.  All of Wisconsin's zipcodes
  759.    start with 5, except Alvin, Wisconsin, which gets its mail
  760.    from a nearby Michigan post office and thus has a Michigan
  761.    zipcode.
  762.  
  763. 2. After two digits, ZIPKEY lists the ten zipcode regions that
  764.    begin with those two digits.  In our example, if you type the
  765.    second digit 7, you get a list of Indiana regions for zipcodes
  766.    beginning with 47: 470, 471, 472, etc.  If a third digit
  767.    yields no valid zipcodes, its line is blank on this display.
  768.                                                               2-3
  769.  
  770. 3. After three digits, ZIPKEY lists the main city for the zipcode
  771.    region.  Zipcodes are organized around three-digit regions:
  772.    all non-local mail is sorted according to region, and shipped
  773.    to a main center for that region.  Only when the mail reaches
  774.    the regional center is it sorted by the last two zipcode
  775.    digits.  Most cities listed by ZIPKEY are the postal service's
  776.    regional centers for those three digits, but many are not.
  777.    The exceptions are the regions surrounding large cities, in
  778.    which the cities themselves have their own first-three digits.
  779.    The postal service considers the large city to be the regional
  780.    center; ZIPKEY will instead typically give the name of a large
  781.    suburb within that region.  For example, the postal service's
  782.    regional center for 471 is Louisville, KY, which handles the
  783.    mail for nearby areas across the Ohio River in Indiana.
  784.    ZIPKEY gives the main city for 471 as Jeffersonville, IN,
  785.    because it gives a better sense of where the region is.
  786.  
  787.    If you type a three-digit combination for which there are no
  788.    valid zipcodes, ZIPKEY will tell you, and ignore any
  789.    subsequent digits typed.
  790.  
  791.    Also included in the three-digit message is a reminder about
  792.    arrow keys during zipcode entry.  We'll discuss arrow keys
  793.    shortly.  The message applies just as well when any number of
  794.    digits are typed-- I placed it there in the three-digit case
  795.    because there is room on the window for it, and because I
  796.    wanted to let people who never read manuals know that the
  797.    feature exists.
  798.  
  799. 4. After four digits, ZIPKEY lists the city for each of the ten
  800.    possible values for the final digit.  If a final digit does
  801.    not have a valid city, its line is left blank.  For example,
  802.    after 4712, you'll see the listing of cities for 47120, 47121,
  803.    47122, etc.
  804.  
  805. 5. Finally, after 5 digits are typed, you get the city and its
  806.    telephone area code, with the invitation to confirm the entry
  807.    with the Enter key.  If there is no city for this zipcode,
  808.    ZIPKEY will guess the last valid zipcode's city, or, if the
  809.    zipcode is before the first or beyond the last valid zipcode
  810.    for the region, ZIPKEY will guess the main city for the
  811.    region.
  812.  
  813.    In demonstration mode, the confirming Enter key will put you
  814.    back to the signon window, ready to type in another zipcode
  815.    specification.  Later, when you run ZIPKEY as a
  816.    memory-resident program, the confirming Enter will pop away
  817.    the window and play the city/state/zipcode combination through
  818.    your keyboard.  The guessed city will be used if the zipcode
  819.    did not exist.  If you don't want the guessed city to be used,
  820.    you exit via the Esc key, and type in the city/state/zip
  821.    yourself.
  822.                                                               2-4
  823.  
  824. Arrow and Paging Keys During Zipcode Search
  825.  
  826. To allow exploration of ZIPKEY's database, ZIPKEY allows you to
  827. use the up-arrow, down-arrow, PgUp, and PgDn keys at any time
  828. during the entry of a zipcode.  These keys either add or subtract
  829. 1 from the value already typed, letting you "move" through the
  830. database.
  831.  
  832. The up-arrow key subtracts 1 from the digits typed (reflecting
  833. the fact that if the zipcodes were listed in order on a page, the
  834. zipcodes would decrease as you move physically up the page).  The
  835. down-arrow key adds one to the digits typed.  For example, if you
  836. type the single digit 0 to ZIPKEY's signon window, you'll get the
  837. list of states whose zipcodes begin with 0.  You can now press
  838. the down-arrow key repeatedly, to get the states lists for 1, 2,
  839. 3, etc.  You can go backwards by pressing the up-arrow key.
  840. Likewise, you can type the two digits 00 to ZIPKEY's signon
  841. window, then press down-arrow repeatedly to get successive lists
  842. of main region cities.  The value will increment from 09 to 10,
  843. so that the entire list of regions can be cycled through with 100
  844. presses of the down-arrow key.  You get similar results after 3,
  845. 4 and 5 digits -- the 4-digit case is most useful, letting you
  846. page through the individual cities in order.  Holding the
  847. down-arrow key down for auto-repeat with 4 digits typed will give
  848. you a sense of the sheer size of ZIPKEY's database, all packed
  849. into your computer's memory.
  850.  
  851. The PgUp and PgDn keys don't provide any radically new
  852. functionality over the up- and down-arrow keys: they simply work
  853. because you might subconsciously think you are in a
  854. word-processor, and expect them to work.  If you press PgUp or
  855. PgDn after 1, 2, or 4 digits are pressed, you get exactly the
  856. same action as the corresponding arrow key.  If you press PgUp or
  857. PgDn after 3 or 5 digits are pressed, ZIPKEY will drop you back
  858. to the 2- and 4-digit cases, respectively, to give you the
  859. "paging" action you might have expected.  If you have configured
  860. ZIPKEY not to display intermediate results (see Chapter 3 for how
  861. to do this), the PgUp and PgDn keys will temporarily enable the
  862. intermediate-results display.
  863.  
  864. Note that these "exploration" keys do not place you into any
  865. special mode: when the typed zipcode increments or decrements, it
  866. is just as if you had typed in the new digits in the first place,
  867. and you can continue typing the zipcode from the new value.  For
  868. example, any of the following keystroke sequences will get you
  869. from the signon window to zipcode 12345:
  870.  
  871.    12345
  872.    0{down}2345
  873.    2{up}2345
  874.    119{down}{down}{down}{down}45
  875.                                                               2-5
  876.  
  877. State and City Search
  878.  
  879. Now we'll discuss the case in which you know the city and state,
  880. and you want to look up the zipcode.  For this case, you start
  881. from ZIPKEY's signon window, and type the two-letter abbreviation
  882. for the desired state.  If you don't remember what the
  883. abbreviation is, don't worry: just type the first letter of the
  884. state's name, and you'll get a display of all the states, with
  885. their abbreviations, that begin with that letter.
  886.  
  887. Your entry of either the state code or the city name can be in
  888. either lower-case or upper-case: ZIPKEY doesn't care.  I give
  889. them in upper case in the following paragraphs just to make them
  890. easier for you to read.
  891.  
  892. After you type the two-letter state abbreviation, ZIPKEY prompts
  893. you for the city name.  As you type the city, ZIPKEY will look up
  894. all cities within that state that start with the letters you have
  895. typed so far.  As soon as there are 50 or fewer matching cities
  896. (usually after only one or two letters), ZIPKEY generates a
  897. display of matching cities.
  898.  
  899. For example, suppose you need to know the zipcode for Robinson,
  900. Illinois.  When you see the ZIPKEY signon window, you can type IL
  901. for Illinois, followed by the city name.  There are more than 50
  902. towns in Illinois whose name begins with R, so you don't get a
  903. display if you type just R.  But after you type the second letter
  904. O, a display is generated.  You may continue typing the city name
  905. until there is only one city left.  Or, once there is a display
  906. of cities, you can type a digit to select one of the cities on
  907. the list.  In the database current to this writing, Robinson is
  908. on the line numbered 3 in the RO display, so the complete
  909. specification ILRO3 will select Robinson.  In the ROB display
  910. Robinson moves up to number 2, so that ILROB2 would also select
  911. Robinson.  Robinson is the only city in Illinois starting with
  912. ROBI, so ILROBI would also select Robinson.
  913.  
  914. If there are more than ten cities in the generated display,
  915. you'll see PgDn displayed off the end of the tenth city.  This is
  916. your indication that the PgDn key will give you more cities.  If
  917. you type PgDn once, you'll get the second ten cities that match
  918. what you've typed so far.  A PgUp appears above the top right of
  919. the cities list, to signal that you can now page back to the
  920. first ten cities.  If there are still more cities beyond this
  921. group of ten, the PgDn indicator will remain.  For example,
  922. suppose you want to view all cities in Oregon whose name begins
  923. with the letter B.  You type ORB to the ZIPKEY signon window,
  924. followed by several PgDn keys to reveal several pages of Oregon
  925. "B"-cities.
  926.                                                               2-6
  927.  
  928. Multiple Zipcode Cities
  929.  
  930. If you perform a city search for a city having more than one
  931. zipcode, ZIPKEY will give you the complete list of zipcodes for
  932. that city, but it can't tell you which zipcode matches your
  933. address-- that's beyond the scope of ZIPKEY's city-level data
  934. base.  In this case, once the search has narrowed down to the
  935. single city, ZIPKEY invites you to complete the zipcode with the
  936. trailing digits it needs to resolve the multiple-zip ambiguity.
  937. In ZIPKEY's demonstration mode, this will serve no purpose other
  938. than to show you how the window will work in memory-resident
  939. mode.  In memory-resident mode, the digits you type are needed to
  940. provide the complete zipcode in the keystroke playback of
  941. city/state/zip.  If you type a confirming Enter at a time that
  942. ZIPKEY is prompting you to complete the digits of a zipcode,
  943. ZIPKEY will fill out the zipcode with 0's, just as you might do
  944. when addressing an envelope with a zipcode whose final digits you
  945. don't know.
  946.  
  947. For example, suppose you wish to look up the zipcode for
  948. Worcester, MA.  You type MAWORCES to the ZIPKEY signon window,
  949. which is more than enough to narrow the display to the single
  950. city.  Worcester has numerous different zipcodes, all beginning
  951. with 016.  ZIPKEY places the blinking cursor after the common
  952. digits 016, and invites you to complete the zipcode.  If you type
  953. 01, the prompt changes to a confirming Enter, and you'll get a
  954. keystroke playback of 01601 as the zipcode.  If you type Enter
  955. right away instead of 01, you'll get 01600 as the zipcode.  The
  956. Postal Service will send your first-class later to region 016,
  957. where it goes to a "don't know the zip" bin for special
  958. processing.
  959.  
  960. A note about the list of zipcodes for a city: it consists of a
  961. sequence of either individual zipcodes or zipcode ranges.  In a
  962. zipcode range, the first and last zipcodes are always valid
  963. zipcodes for the city displayed.  There will be no zipcodes in
  964. the range that represent a city different than the one displayed.
  965. However, there may be zipcodes within the range that are
  966. undefined.  For example, in the database current at this writing,
  967. the range 01613-55 for Worcester, MA represents a range running
  968. from 01613 to 01655.  You can view the range in detail if you
  969. switch back to zipcode lookup: type Home to return you to
  970. ZIPKEY's signon window, then type 0161 followed by four presses
  971. of the down-arrow key.  You'll see that there aren't any
  972. non-Worcesters between 01613 and 01655, but that most of the
  973. range is undefined.
  974.                                                               2-7
  975.  
  976. City-Only Search
  977.  
  978. ZIPKEY also allows you to search for a city name without
  979. specifying the state.  To use this feature, you type a question
  980. mark to the ZIPKEY signon window.  ZIPKEY will prompt for the
  981. city name, and tell you to press the Enter key when you want the
  982. search to begin.  This search requires ZIPKEY to walk through the
  983. entire zipcode database, which is too slow to display
  984. intermediate results.  You may type either a partial name (the
  985. first few characters), or a complete name.  When you press the
  986. Enter key, ZIPKEY will change the state display to the first
  987. state containing a matching city name, and list the matching
  988. cities.
  989.  
  990. If there are no matching cities, ZIPKEY tells you, and invites
  991. you to correct the entry with the backspace key.  Remember, you
  992. don't have to type the whole city name-- the first few letters
  993. may narrow the possibilities enough for you to find your city
  994. without risking a misspelling.
  995.  
  996. Let's do a sample city-only search.  There's a commercial on TV
  997. in which a woman tells how they prepare Shredded Wheat back home
  998. in Nome.  A co-worker replies, "I didn't know you were from
  999. Alaska.", to which the woman replies, "I'm not; I'm from Nome,
  1000. Texas."  As a vigilant ZIPKEY user, you wish to know if there are
  1001. any other Nomes out there.  You type ?NOME followed by the Enter
  1002. key to the ZIPKEY signon window.  ZIPKEY displays the first
  1003. state, Alaska, containing a Nome.  Now read on to the next
  1004. section to see how to get the other Nomes.
  1005.  
  1006.  
  1007. Moving From State to State
  1008.  
  1009. The city-only search just described will give you just the first
  1010. state containing a matching city.  To move on to subsequent
  1011. states, you press the down-arrow key.  So, from our previous
  1012. example, when you have Nome, Alaska selected, you press the
  1013. down-arrow key to find the next state containing a matching city.
  1014. ZIPKEY reveals a hitherto-unrevealed Nome, in North Dakota.
  1015. Pressing down-arrow again moves the display to the Nome, Texas of
  1016. the Shredded-Wheat woman.  Another down-arrow cycles us back to
  1017. Alaska, so we conclude that there are exactly three Nomes in the
  1018. database.
  1019.  
  1020. What happens when there is a state containing a matching city,
  1021. but that is the only such state?  If you press down-arrow, ZIPKEY
  1022. will take several seconds to try to find another state, then
  1023. return to the same display.  You can tell that the search is
  1024. complete because the blinking cursor goes to the state code
  1025. during the search, then returns to the city name when the search
  1026. is over.
  1027.                                                               2-8
  1028.  
  1029. Again, I've tried to minimize the number of special modes in
  1030. which you can be.  When you perform a city-only search, and reach
  1031. the first state, it is just as if you had typed that state's code
  1032. instead of ? in the first place.  Conversely, if you type a
  1033. state-and-city specification, you can move to other states with
  1034. that same city specification by pressing the down-arrow key to
  1035. move to the next state; or the up-arrow key to move to the
  1036. previous state containing a matching city.
  1037.  
  1038.  
  1039. Unabbreviation
  1040.  
  1041. For consistency and completeness, ZIPKEY's data base stores all
  1042. city names in a totally unabbreviated form, spelling out words
  1043. such as Saint, Sainte, Fort, Mount, North, South, East, and West.
  1044. (The one exception is the word "National" in cities containing
  1045. the phrase "National Park", which is stored as "Ntl".  I wanted
  1046. to minimize the number of excessively long city names.)  The
  1047. unabbreviated forms will not cause a problem for you if you need
  1048. to fit your city name into a fixed field, because ZIPKEY does a
  1049. good job of abbreviating names as necessary to fit in such fields
  1050. (details are in Chapter 3).  But you might forget to spell out a
  1051. name such as St. Louis when typing a city specification that you
  1052. would like ZIPKEY to search.  So ZIPKEY allows the abbreviations
  1053. St, Ste, Ft, Mt, N, S, E, and W for the above-mentioned full
  1054. names.  The abbreviations must be followed by a period or a space
  1055. for ZIPKEY to accept them.
  1056.  
  1057. For example, suppose you type MNST to the ZIPKEY signon window.
  1058. You'll get a list of Minnesota cities beginning with ST, and none
  1059. with Saint.  But if you now type a period or space, ZIPKEY will
  1060. switch to a list of Saint cities.
  1061.  
  1062.  
  1063. Telephone Area Code Search
  1064.  
  1065. You may use ZIPKEY to find out what geographical area is
  1066. associated with a given telephone area code.  Simply type a left
  1067. square bracket [ followed by a three-digit area code.
  1068.  
  1069.  
  1070. Repeat Last Zipcode
  1071.  
  1072. Finally, we cover a fifth specification that can be typed from
  1073. ZIPKEY's signon window-- a double-quotes mark " to call up the
  1074. last zipcode returned.  This option exists to accommodate hotkeys
  1075. that repeat the last zipcode specified, and also hotkeys that
  1076. play back a keystroke sequence unrelated to any zipcode.  These
  1077. possibilities are covered, with examples, in Chapter 3, in the
  1078. fixed-keystrokes option of the Zipcode Source section.
  1079.                                                               2-9
  1080.  
  1081. Typing the quotes mark " causes ZIPKEY to display the previous
  1082. zipcode, city, and state found, and immediately prompt for the
  1083. confirming Enter key.  The "previous" zipcode specification
  1084. starts out nonsense (Aaron, AL 00000 in the current database at
  1085. this writing) until a real zipcode is looked up.  The "previous"
  1086. specification does not change if a lookup is cancelled via Home
  1087. or Esc -- it changes only after the confirming Enter or alternate
  1088. exit key is pressed.
  1089.  
  1090. CHAPTER 3   ZIPKEY CONFIGURATION
  1091.  
  1092.  
  1093. In this chapter we discuss how you can tailor ZIPKEY to your
  1094. specific needs.  You can choose where the zipcodes are stored
  1095. when ZIPKEY is loaded into your computer's memory, which keys you
  1096. will press to invoke ZIPKEY, the location and color of the ZIPKEY
  1097. popup window, and the format for the city/state/zip combination
  1098. to be played back though your keyboard.
  1099.  
  1100. These adjustable selections for ZIPKEY are stored in a special
  1101. file on your disk, called a ZC (for ZIPKEY Configuration) file.
  1102. Every time ZIPKEY is installed in your computer's memory, a ZC
  1103. file is automatically read, to determine all of the configuration
  1104. choices you made.
  1105.  
  1106.  
  1107. Determining Your Configuration Needs
  1108.  
  1109. Before you attempt to create a ZC file, you should spend a little
  1110. time exploring how you are currently typing in addresses.  In
  1111. order to let ZIPKEY fool the computer into thinking you have
  1112. typed in a complete city/state/zip, you'll have to tell ZIPKEY
  1113. exactly what you type-- this can include preliminary positioning
  1114. keystrokes, intervening keystrokes for punctuation, spacing, or
  1115. further positioning, and trailing keystrokes for termination or
  1116. still more positioning.
  1117.  
  1118. For example, suppose that you use two different programs to enter
  1119. addresses: a database management program and a word processor.
  1120. Before you try to configure ZIPKEY, you should invoke each
  1121. program and type in a sample address.  You enter the database
  1122. manager, which puts an address template onto the screen.  You
  1123. type in a name and an address, noticing that you use the Enter
  1124. key to move from field to field.  You press the Enter key to
  1125. reach the start of the city field.  At this point, you should
  1126. count the number of available spaces in the city field.  If this
  1127. is visually difficult, the sample name you type can assist you:
  1128. type Xxxx xxxx xxxx xxxx etc. to mark spaces.  Let's suppose
  1129. there are 17 spaces available.  Make a note of this number:
  1130. ZIPKEY will need it.  You press the Enter key to advance the
  1131. cursor to the two-letter state abbreviation field.  You type a
  1132. sample two-letter state code, and notice that the cursor
  1133. automatically advances to the zipcode field without your typing
  1134. Enter -- such a detail is important for the accurate recording of
  1135. the keystroke sequence.  Then you type the five-digit zipcode and
  1136. notice that another Enter is required to advance the cursor to
  1137. the telephone field. Finally, you type the area code, a minus
  1138. sign (hyphen), and the telephone number.  So the exact keystroke
  1139. sequence for getting from the last field before the city to the
  1140. hyphen after the area code is:
  1141.  
  1142. {Enter}C{Enter}AZ{Enter}T-
  1143.  
  1144. where the variable parts of the entry are denoted by the letters
  1145. C,A,Z,T.  Again, the lack of an {Enter} between A and Z reflects
  1146. the fact that the cursor moves automatically from the state
  1147. abbreviation to the zipcode field.
  1148.                                                               3-2
  1149.  
  1150. Now you discard the sample record you have created, exit your
  1151. database manager, and invoke your word processor.  You use this
  1152. program to type letters: addresses are typed in as a letterhead.
  1153. The format consists of the city name, a comma, a space, the
  1154. two-letter state abbreviation, a space, the zipcode, and two
  1155. Enter keys.  In our notation, this is
  1156.  
  1157. C, A Z{Enter}{Enter}
  1158.  
  1159. with no limitation to the length of the city name.  You have now
  1160. gathered the information needed for a ZIPKEY specification.  You
  1161. can exit your word processor and invoke ZIPKEY's configuration
  1162. option, described in the next section.
  1163.  
  1164.  
  1165. How to Create a ZC File
  1166.  
  1167. You create a ZC file by selecting ZIPKEY main menu option 3,
  1168. "Configure ZIPKEY for memory-resident use".  You may also go
  1169. directly to this option from DOS's command prompt, by typing
  1170. ZIPKEY 3 followed by the Enter key.  If you've never configured
  1171. ZIPKEY before, you will immediately be given the configuration
  1172. questionnaire, as described in the following sections.  If you
  1173. have already configured ZIPKEY, you will be given the
  1174. configuration editing menu.  You can repeat the entire
  1175. configuration by choosing option 1, "Replace entire
  1176. configuration."
  1177.  
  1178.  
  1179. Default Options
  1180.  
  1181. The following sections describe each configuration option you'll
  1182. encounter.  Before we begin each option, however, let's discuss a
  1183. feature that covers the entire ZIPKEY configuration process: the
  1184. default option.
  1185.  
  1186. In most situations during ZIPKEY configuration, ZIPKEY attempts
  1187. to discern what option it thinks you are most likely to select.
  1188. It will display that option underneath the current cursor
  1189. position as it waits for your response.  If you wish to select
  1190. this default option, you may do so explicitly by retyping the
  1191. already-displayed selection.  But you can also select the default
  1192. option by simply pressing the Enter key.
  1193.  
  1194. If you are respecifying a previously-existing configuration, the
  1195. default options will be those from the old file.  You can press
  1196. Enter for those sections that you don't want to change.  If you
  1197. are configuring for the first time, the default is the option
  1198. that I think most people will choose.  If you are confused by an
  1199. option and aren't sure what to select, press Enter to get the
  1200. default setting.
  1201.                                                               3-3
  1202.  
  1203. Memory Model
  1204.  
  1205. ZIPKEY consists of two parts: the ZIPKEY program that controls
  1206. ZIPKEY's functions, and the database that contains the zipcodes
  1207. themselves.  When you install ZIPKEY as a memory-resident
  1208. program, the ZIPKEY program is always installed in your main
  1209. computer memory -- it occupies about 20000 bytes (20K of the 640K
  1210. available in most late-model computers).  You don't have any
  1211. choice as to where the ZIPKEY program is stored.  However, you do
  1212. have a choice as to where the database (occupying about 128K) is
  1213. stored:
  1214.  
  1215. 1. You may have the database stored in Lotus-Intel-Microsoft
  1216.    expanded (EMS) memory.  This is a special kind of memory,
  1217.    provided by add-on boards such as Intel's AboveBoard, designed
  1218.    to break the 640K memory capacity "barrier" of the IBM-PC
  1219.    family.
  1220.  
  1221.    If you're not sure whether your system has EMS memory, don't
  1222.    worry: ZIPKEY determines this for you, and makes this option
  1223.    the default if there is sufficient EMS memory available to
  1224.    load the database.
  1225.  
  1226.    If this option is available to you, it is usually the best.
  1227.    It allows the fastest access to the database without occupying
  1228.    main memory, and it avoids any potential problems resulting
  1229.    from attempting to access the disk from a popup utility.
  1230.  
  1231. 2. You may keep the database on your disk, causing ZIPKEY to
  1232.    access the database file every time it looks up a zipcode.
  1233.    This option is slower than the other two options, but not too
  1234.    slow: only two disk read operations (maximum 400 bytes and
  1235.    usually much less) are required to look up each zipcode entry.
  1236.    On a hard disk this takes a small fraction of a second.
  1237.  
  1238. 3. You may load the database into main memory.  This allows the
  1239.    same fast access as the EMS option (maybe even a shade
  1240.    faster), but it means that every other program running on your
  1241.    computer will have 128K bytes less memory to work with.  There
  1242.    are many situations in which this won't be a problem: for
  1243.    example, if the computer is dedicated as a workstation for
  1244.    order entry, you can experiment to see if it works just as
  1245.    well with ZIPKEY's data stored in main memory.  If it does,
  1246.    fine: you get the fastest access without having to buy an EMS
  1247.    memory board.
  1248.  
  1249. There is an additional question if you did not choose to keep the
  1250. data on the disk (you chose EMS or main memory instead).  ZIPKEY
  1251. asks if you will be running Desqview after installing ZIPKEY.
  1252. This option will force ZIPKEY to make an additional compatibility
  1253. check before popping up its window (the check is made anyway if
  1254. the data comes from the disk).  Even if you don't run Desqview,
  1255. if you have problems with ZIPKEY in EMS or main-memory mode, but
  1256. not in disk-mode, you should try answering Y to this question.
  1257.                                                               3-4
  1258.  
  1259. Intermediate Results
  1260.  
  1261. As an added convenience (and also for fun!) ZIPKEY is capable of
  1262. displaying what it knows about the specification you have typed
  1263. so far.  For example, if you have typed in exactly 4 of the 5
  1264. digits of a zipcode, ZIPKEY will display a list of the 10
  1265. possibilities for the fifth digit.  If you type a partial
  1266. specification and then use the up-arrow, down-arrow, PgUp, and
  1267. PgDn keys, you can "explore" the database.
  1268.  
  1269. There are two reasons why you might want to suppress the display
  1270. of intermediate results: first, to avoid the time it takes to
  1271. look them up.  If you are getting the zipcode data from a slow
  1272. disk, or you are running on an older slow (4.77 MHz) computer,
  1273. then the results are likely to lag a bit behind your typing.  The
  1274. lag is typically no more than about a second-- it's a matter of
  1275. taste whether this is acceptable to you.  The second reason for
  1276. suppressing intermediate results is purely a matter of taste: you
  1277. might be visually annoyed by all that unused information flashing
  1278. past as you type.  If that is the case, however, you may wish to
  1279. choose the option (described later) of taking zipcodes from the
  1280. screen -- that way you can arrange for ZIPKEY's window not to pop
  1281. up at all, which absolutely minimizes the visual distraction.
  1282.  
  1283.  
  1284. Numlock On
  1285.  
  1286. This is a feature inspired by the possibility of using the 5 key
  1287. on the numeric keypad as the "hotkey" that will pop up ZIPKEY's
  1288. window.  If you habitually compute with Numlock turned off, the 5
  1289. key has no other useful function.  If that is the case, since
  1290. your hand is already on the numeric keypad, you may wish to keep
  1291. it there to type in the zipcode.  By selecting this option, you
  1292. are instructing ZIPKEY to activate Numlock when its window pops
  1293. up.  ZIPKEY will restore the old status of Numlock when the
  1294. window pops away.
  1295.  
  1296.  
  1297. Slow Down Keyboard
  1298.  
  1299. This option insures that ZIPKEY doesn't provide keystrokes too
  1300. fast for your program to successfully digest.  To be on the
  1301. conservative side, you should select Y for this option when you
  1302. configure ZIPKEY for the first time.  Then, after you have ZIPKEY
  1303. working, you can try changing this option to N, so that the
  1304. entire city/state/zip combination appears instantaneously in your
  1305. program.
  1306.  
  1307. Two programs that definitely need Y are the Condor database
  1308. system, and older versions of the Wordstar word processor.
  1309.                                                               3-5
  1310.  
  1311. If you select N when you needed Y, you'll see missing keystrokes
  1312. in the playback of city/state/zip.  The problem exists in some
  1313. modern programs, but it is most common in older programs.  The
  1314. problem was made widespread when Borland, in its Turbo Pascal
  1315. version 2, published a recommended procedure for programs to
  1316. fetch keystrokes from the computer.  The procedure involved
  1317. fetching each keystroke two or three times, relying on the fact
  1318. that no human could type the next key before such multiple
  1319. fetches were made.  This programming method did not foresee the
  1320. advent of keyboard enhancement programs such as SmartKey, ProKey,
  1321. and now ZIPKEY, that simulate keyboard typing at computer speeds.
  1322.  
  1323.  
  1324.  
  1325. Window Characteristics
  1326.  
  1327. This section of ZIPKEY's configuration allows you to adjust the
  1328. visual characteristics of ZIPKEY's popup window.
  1329.  
  1330. ZIPKEY tries to present you with a window that is both easily
  1331. noticed and unobtrusive.  To be easily noticed, ZIPKEY pops a
  1332. window with a different color than the underlying screen (reverse
  1333. video for monochrome monitors).  To be unobtrusive, ZIPKEY avoids
  1334. popping up in a location that would cover up the current cursor
  1335. location on the screen.
  1336.  
  1337. For windows configuration, ZIPKEY simultaneously pops up two
  1338. windows.  The main window shows where ZIPKEY usually pops up.
  1339. The alternate window shows where ZIPKEY pops up if the main
  1340. window would cover the current cursor position.   You can
  1341. eliminate the alternate window (thus disabling the cursor-dodging
  1342. feature) by pressing the F5 key, which toggles the alternate
  1343. window on and off.  You'll need to disable the alternate window
  1344. if you want the main window to pop up in the middle of the
  1345. screen, where there isn't room on either side for an alternate
  1346. window.  You can swap the main and alternate windows by pressing
  1347. the F6 key.
  1348.  
  1349. During this configuration window display, you can use the arrow
  1350. keys (Up, Down, Left, or Right) to move the main window.  You
  1351. cannot move the alternate window directly, but you can
  1352. temporarily swap the main and alternate windows with F6, move the
  1353. temporarily-main window, and then reswap with F6 again.
  1354.  
  1355. The remaining function keys are used to adjust the colors for the
  1356. popup window.  The internal numeric codes for the colors are
  1357. displayed, so that you can manually record the settings if you
  1358. wish.  There are two function keys for each setting: one to
  1359. decrement the numeric code, the other to increment the code.  F1
  1360. and F2 change the window color (sometimes called the "background"
  1361. color) usually displayed.  F3 and F4 change the text
  1362. ("foreground") color.  If most of the underlying screen (actually
  1363. a diagonal sample of cells, to save time) is the same background
  1364. color as the window's main color, then ZIPKEY uses the alternate
  1365. color, displayed on only four lines of the main configuration
  1366. window.  The alternate window color is adjusted by F7 and F8; the
  1367. text color by F9 and F10.
  1368.                                                               3-6
  1369.  
  1370. When you have completed adjusting the windows to your taste, you
  1371. press the Enter key to pop away the configuration windows, and
  1372. move on to the next stage of configuration.
  1373.  
  1374.  
  1375. Monochrome and Color Window Settings
  1376.  
  1377. If you are installing ZIPKEY on multiple computers, some with
  1378. monochrome screens and others with color screens, then you should
  1379. create your ZC file on one type of screen, and modify it for
  1380. window colors on another computer with the other type of screen.
  1381. ZIPKEY stores separate color codes for monochrome and color
  1382. screens.  When it is installed, ZIPKEY detects whether you have
  1383. color or monochrome.  If you have a color screen, ZIPKEY uses the
  1384. selections you configured on a color screen; if you have a
  1385. monochrome screen, ZIPKEY uses the other selections you made on
  1386. monochrome.  Thus, you don't need to have a different ZC file for
  1387. your monochrome vs. color computers.
  1388.  
  1389.  
  1390. Hotkey Configuration
  1391.  
  1392. All of the options described up to now are general settings--
  1393. they determine the overall characteristics of ZIPKEY, that don't
  1394. depend on which hotkey was pressed to invoke ZIPKEY.  Now we'll
  1395. discuss the characteristics specific to hotkeys -- they change
  1396. depending on the keystroke combination used to invoke ZIPKEY.
  1397.  
  1398. We recall the example spelled out in the section "Determining
  1399. Your Configuration Needs" earlier in this chapter.  In that
  1400. example, you will invoke ZIPKEY in two different contexts: from
  1401. within a database manager, and also from within a word processor.
  1402. The format for typing city/state/zipcode differs in the two
  1403. contexts.  In the following sections, we'll present one method of
  1404. handling the difference: we'll define two different hotkey
  1405. combinations to invoke ZIPKEY.  One hotkey is to be used while in
  1406. the database manager, and the other hotkey is to be used while in
  1407. the word processor.  Later, we'll talk about other ways to handle
  1408. the difference (with alternate exit keys, or with alternate named
  1409. ZC files).
  1410.  
  1411.  
  1412. Hotkey Name
  1413.  
  1414. The first part of a hotkey specification is its name-- the
  1415. combination of keystrokes you will use to invoke ZIPKEY.  To
  1416. detect hotkeys, ZIPKEY monitors the signals coming directly from
  1417. the keyboard into your computer, so that ZIPKEY can tell when you
  1418. have pressed keys simultaneously.  You should select some
  1419. combination of keys that won't be pressed for any purpose other
  1420. than invoking ZIPKEY.  Often you won't need a combination: you
  1421. might find some individual keys on your keyboard that are
  1422. otherwise unused.  Here are some ideas for hotkeys you can use:
  1423.                                                               3-7
  1424.  
  1425. 1. We've already mentioned the 5 key on the numeric keypad.  Of
  1426.    course, you should only choose this if you habitually keep
  1427.    Numlock off.  Otherwise, you wouldn't be able to use the
  1428.    keypad to type any numbers containing the digit 5.
  1429.  
  1430. 2. Other individual keys that are seldom used are the F11 and F12
  1431.    keys on the newer-generation keyboards, and the SysReq key on
  1432.    the AT keyboard.
  1433.  
  1434. 3. If the computer using ZIPKEY is dedicated to a single purpose,
  1435.    such as order entry, you might have a printing key on your
  1436.    keyboard, such as the back-quote key, that is almost never
  1437.    used.  You can make this key a ZIPKEY hotkey without causing
  1438.    too much inconvenience.  If you do so, you may wish to define
  1439.    Alt-backquote as a special hotkey that produces a back-quote
  1440.    (how to do this is discussed later).
  1441.  
  1442. 4. Exotic combinations of the shifting keys (Shift, Ctrl, Alt),
  1443.    possibly combined with a single non-shifting key, are often
  1444.    used as hotkeys to invoke memory-resident programs.  Examples:
  1445.    Ctrl-RightShift, both Shift keys, Ctrl-Shift-Z, or both Shift
  1446.    keys and Z.  A couple of cautions are in order here: First, if
  1447.    there are other memory-resident programs residing
  1448.    simultaneously with ZIPKEY, you must insure that every
  1449.    programs' hotkeys can be detected by that program.  For
  1450.    example, Ctrl-Alt-Z wouldn't be a good ZIPKEY hotkey if you
  1451.    have Sidekick, because Sidekick would pop in when it saw the
  1452.    Ctrl-Alt.  Second, you should be aware that ZIPKEY
  1453.    distinguishes between left and right shifting keys.  If you
  1454.    don't want ZIPKEY to distinguish, you can define identical
  1455.    hotkeys with each combination.
  1456.  
  1457. 5. If you've used up all the obvious sequences, ZIPKEY allows
  1458.    combinations not usually seen in hotkeys; namely, you can have
  1459.    more than one non-shifting key.  A mnemonic choice would be
  1460.    the Z and C keys pressed simultaneously-- they're close
  1461.    together but not adjacent so the combination won't be pressed
  1462.    accidentally.  This hotkey requires an extra consideration:
  1463.    from the computer's point of view, the keys will never be
  1464.    simultaneous: one code will always be received before the
  1465.    other.  ZIPKEY doesn't care which key comes first, as long as
  1466.    the second key is pressed before the first one is released.
  1467.    But before ZIPKEY can pop up, one of the two keycodes will be
  1468.    seen by the program (e.g. the database manager or word
  1469.    processor) that you're running.  So an unwanted Z or C will be
  1470.    displayed. You handle this in your returned city/state/zip
  1471.    keystroke sequence, by specifying the first returned keystroke
  1472.    to be the backspace key, wiping out the Z or C.
  1473.  
  1474.    Another caution is in order for the most exotic sequences:
  1475.    some keyboards get confused by more than two non-shifting keys
  1476.    pressed simultaneously, and don't deliver all the codes to the
  1477.    computer for ZIPKEY to see. ZIPKEY lets you verify that your
  1478.    sequence is being received correctly, by echoing the sequence
  1479.    for confirmation.  You can experiment with various
  1480.    combinations to see what works, before confirming the name for
  1481.    your hotkey.
  1482.                                                               3-8
  1483.  
  1484. The echoing of your hotkey is based on the internal codes
  1485. delivered by the IBM-PC and 100%-compatible keyboards.   Most
  1486. keyboards are compatible with the IBM-PC, but some aren't.  For
  1487. those keyboards, the echoed names won't match the names of the
  1488. keys as you know them.  However, as long as the echoing is
  1489. consistent (you get the same thing on several tries), the hotkey
  1490. will work correctly when you use ZIPKEY.
  1491.  
  1492. Recalling our database/word processing example: let's assume you
  1493. have a newer-generation keyboard with F11 and F12 keys.  You'll
  1494. use F11 for the database hotkey and F12 for the word processing
  1495. hotkey.  So the first time you are prompted for a hotkey name,
  1496. type the F11 key for the name, and Y to confirm the name.
  1497.  
  1498.  
  1499. Zipcode Source
  1500.  
  1501. Once you have confirmed the name of a hotkey, ZIPKEY next asks
  1502. for the first action it should take when you have pressed the
  1503. hotkey.  There are four choices: first, ZIPKEY can simply pop up
  1504. its window and wait for the operator to type a zipcode
  1505. specification.  Second, ZIPKEY can look at the contents of the
  1506. video display, to find a zipcode that already appears on the
  1507. screen.  Third, ZIPKEY can pretend that it has popped up its
  1508. window and that a fixed sequence of zipcode specification
  1509. keystrokes has already been typed. Finally, ZIPKEY can look at
  1510. the last 16 keystrokes typed, and use the last 5 digits typed as
  1511. the zipcode to be searched.  Let's consider each choice in turn:
  1512.  
  1513. 1. The popup-window option is the simplest and most
  1514.    commonly-used.  There are no further configuration choices you
  1515.    need to make for this option.
  1516.  
  1517. 2. The video screen option is used when the zipcode has already
  1518.    been typed at the time ZIPKEY is invoked.  You can use this
  1519.    option to create a hotkey that verifies existing address
  1520.    records, or to create a data-entry scenario in which ZIPKEY's
  1521.    window normally doesn't pop up at all, and so is the most
  1522.    unobtrusive.
  1523.  
  1524.    If you choose to take the zipcode from the video screen,
  1525.    ZIPKEY will look for five consecutive digits on the same line
  1526.    as the cursor, or on an immediately adjacent line, above or
  1527.    below the current line.  If no five-digit sequence is seen,
  1528.    ZIPKEY will pop up a window just as if option 1 had been
  1529.    selected.  If a five-digit sequence is seen but it isn't a
  1530.    valid zipcode, ZIPKEY will pop up its window with that
  1531.    zipcode, and tell you that the city wasn't found.  For the
  1532.    final possibility, a valid five-digit zipcode, you have an
  1533.    option: you can have ZIPKEY pop up its window so that you can
  1534.    confirm the city, or you can have ZIPKEY automatically play
  1535.    back the city/state/zip sequence without popping up at all.
  1536.    If you want to allow the possibility of using alternate exit
  1537.    keys (described later), you must choose to have ZIPKEY always
  1538.    pop up the window.
  1539.                                                               3-9
  1540.  
  1541.    What happens if there is more than one five-digit sequence on
  1542.    the screen? ZIPKEY uses the first sequence it finds, searching
  1543.    in the following order: first, it starts five characters
  1544.    beyond the current cursor position, looking backwards to the
  1545.    start of the current line.  Then it looks from the current
  1546.    cursor position forwards to the end of the current line.  Then
  1547.    it looks backwards from the end to the start of the line above
  1548.    the current cursor position.  Finally, it looks from the start
  1549.    to the end of the line below the current cursor position.
  1550.  
  1551. 3. The fixed-keystroke option is used for a number of
  1552.    special-purpose applications.  For example, if a large number
  1553.    of addresses that you type are in a local area in which the
  1554.    first three zipcode digits are always the same, you may wish
  1555.    to define a hotkey with a fixed-keystroke sequence consisting
  1556.    of those three digits.  Or, if your data-entry scenario
  1557.    includes typing the zipcode twice (as a part of an ID number,
  1558.    then later as a part of the address), you may wish to define
  1559.    an option 1 (popup) hotkey for the first instance of the
  1560.    zipcode, then another, option 3 hotkey for the second
  1561.    instance, with a fixed-keystroke string of "{Enter} to repeat
  1562.    the zipcode.  Finally, you can use this option to make hotkeys
  1563.    to generate keystroke sequences having nothing to do with
  1564.    zipcodes.  To do this, you again use "{Enter} as the fixed
  1565.    input sequence, so that the ZIPKEY window doesn't pop up.
  1566.    Then you specify a playback sequence that doesn't use any of
  1567.    the zipcode entries -- I'll give an example at the end of this
  1568.    chapter.
  1569.  
  1570.                                                              3-10
  1571.  
  1572.    When you choose this option, ZIPKEY prompts you for the fixed
  1573.    keystroke sequence.  Remember, this is a sequence of keys that
  1574.    you could have typed if ZIPKEY's window had popped up.  Thus,
  1575.    it should follow ZIPKEY's popup syntax: either a sequence of
  1576.    digits for a zipcode, or a two-letter state code followed
  1577.    optionally by a (partial or complete) city name, or a
  1578.    question-mark followed by a city name, or the double-quotes
  1579.    mark " to repeat the last zipcode.
  1580.  
  1581.    Note that the Enter key can be included in the keystroke
  1582.    sequence.  Thus you must use another key to tell ZIPKEY right
  1583.    now that you've finished typing the keystroke sequence.  I
  1584.    have chosen the * character as the signal for this, as it
  1585.    isn't a part of ZIPKEY's popup syntax.
  1586.  
  1587.    A common mistake is to confuse this fixed keystroke sequence
  1588.    with the sequence of keys intended to be played back through
  1589.    your keyboard.  If, for example, you provide Bloomington, IN
  1590.    47401* here, ZIPKEY will pretend you had typed BLOO etc. when
  1591.    its window popped up. ZIPKEY is forgiving about BL not being a
  1592.    proper state code, and will switch to a city-only search for
  1593.    the string given.  However, the comma and all the follows will
  1594.    be part of the city name being searched, so the search will
  1595.    fail.  You should instead provide the simpler fixed sequence
  1596.    47401{Enter}* and give a playback sequence (described shortly)
  1597.    that causes the desired fixed city/state/zip combination.
  1598.  
  1599. 4. The last-keystrokes option is the only one you can use if you
  1600.    wish to type in zipcodes from within graphics programs such as
  1601.    Borland Reflex or Ventura Desktop Publisher.  ZIPKEY cannot
  1602.    pop up when your video display is in graphics mode; nor can it
  1603.    read the contents of the screen.  With this option, you type
  1604.    the zipcode first, before pressing the ZIPKEY hotkey.  ZIPKEY
  1605.    can replace the zipcode typed with the city/state/zip, without
  1606.    the window ever needing to pop up.  If the zipcode isn't
  1607.    already placed correctly when it is typed, you need to begin
  1608.    your playback sequence with bbbbb to wipe out the zipcode.
  1609.  
  1610. In the database management example, you'll choose option 1, to
  1611. pop up a window and wait for the operator to type in the zipcode.
  1612.  
  1613.  
  1614. Format of City/State/Zip Keystrokes
  1615.  
  1616. In normal ZIPKEY usage, after the zipcode has been specified and
  1617. the Enter key is typed to confirm the city found, ZIPKEY will
  1618. fool the computer into thinking a complete city/state/zip
  1619. combination has been typed.  You specify the format for this
  1620. combination now, during the specification of your hotkey.
  1621.  
  1622. The sequence usually consists of variable parts (city, state,
  1623. zip) that depend on the zipcode, combined with fixed parts: the
  1624. keystrokes that separate the variable parts, such as spaces,
  1625. punctuation marks, and positioning keys.  As you specify the
  1626. sequence, you type most of the fixed parts (spaces, commas,
  1627. Enter, Tab, arrow keys, etc.) just as you want them played back.
  1628. For each variable part, you substitute a letter (which you can
  1629. type in either upper- or lower-case) from the following list:
  1630.                                                              3-11
  1631.  
  1632. C  causes the name of the city to be generated.  ZIPKEY will
  1633.    abbreviate the name as necessary to fit it into a fixed-sized
  1634.    field.  When you type the C now at configuration time, a
  1635.    window pops up, prompting you to follow the C with the
  1636.    two-digit width you would like the city to fit into. You
  1637.    should type 99 if there is no limit.  A limit of 15 will give
  1638.    you reasonable results in all cases.  A limit less than 15
  1639.    will make some entries undecipherable and/or ambiguous.  A
  1640.    limit of 19 will cause all but a few cities not to be
  1641.    abbreviated at all.  The longest city name in the database is
  1642.    King and Queen Court House (Virginia), which has 26
  1643.    characters.
  1644.  
  1645.    If you type a limit less than 99, ZIPKEY will then ask you to
  1646.    specify whether the playback should follow the city name with
  1647.    a sequence of spaces (or right-arrows, or whatever) to fill
  1648.    out the fixed field.  Most database managers (including the
  1649.    one in our example) won't require this -- they let you type a
  1650.    single key, such as Enter or Tab, to advance to the next
  1651.    field. You would typically need this padding only if you are
  1652.    using a simple text editor to maintain a fixed-field database.
  1653.    If you need the padding, type F followed by the padding
  1654.    character (typically the space bar).  If you don't need the
  1655.    padding, type N and continue the playback sequence by
  1656.    providing the character needed (Enter, Tab, etc.) to advance
  1657.    beyond the city field.
  1658.  
  1659. A  causes the two-letter state abbreviation (in capital letters)
  1660.    to be generated.
  1661.  
  1662. Z  causes the five-digit zipcode to be generated.  There is one
  1663.    case -- a city search which returned multiple zipcodes in
  1664.    which the operator didn't complete the zipcode -- that 0's are
  1665.    provided to complete the zipcode.
  1666.  
  1667. T  causes the three-digit telephone area code to be generated.
  1668.  
  1669. In addition to the above commonly-used letters, ZIPKEY offers the
  1670. following letters for more special purposes:
  1671.  
  1672. B  causes a backspace to be generated.  This is on this list so
  1673.    you can use the backspace key right now to correct your
  1674.    configuration entry.  You will begin your playback sequence
  1675.    with B if the hotkey name was something like Z C, which causes
  1676.    one letter to escape to the application program.  You can also
  1677.    begin the playback sequence with BBBBB if you used option 2 or
  1678.    option 4 above to read a just-typed zipcode, and you wish to
  1679.    replace the zip with city/state/zip in the playback sequence.
  1680.                                                              3-12
  1681.  
  1682. L  causes the next character to be literalized -- that is, it is
  1683.    output as-is even though it might be on this list.  You can
  1684.    and should literalize all letters played back, just in case
  1685.    future versions of ZIPKEY add new letters to this list.  You
  1686.    can also literalize the * character to cause it to be played
  1687.    back instead of being interpreted as the terminator to this
  1688.    sequence.  For example, you may wish to embellish our
  1689.    word-processing example by appending LDLeLaLr followed by a
  1690.    space to the playback, causing "Dear " to be generated below
  1691.    the letterhead.
  1692.  
  1693. R  is used to retreat back across a variable-length city name.
  1694.    This would be used in a special case in which an address is
  1695.    being generated that might be indented on the page by an
  1696.    unknown amount.  Some text editors might require you to
  1697.    left-arrow back to the start of the name, then down-arrow to
  1698.    the next line to be aligned with the city-line.  You follow
  1699.    the R with the left-arrow key, or whatever other key you wish
  1700.    to be repeated by the length of the city name.
  1701.  
  1702. S  causes the full name of the state to be generated.  Most
  1703.    people will not use S, but instead use A to generate the
  1704.    two-letter abbreviation.
  1705.  
  1706. Just as with the fixed input specification, you can include the
  1707. Enter key as part of the sequence of keystrokes.  So you signal
  1708. ZIPKEY that the sequence is complete with the * character.
  1709.  
  1710. Returning to our database example, recall that the keystroke
  1711. sequence used for entering the city/state/zip/areacode
  1712. combination was
  1713.  
  1714. {Enter}C{Enter}AZ{Enter}T-
  1715.  
  1716. This is what you should type when ZIPKEY asks for the keystroke
  1717. playback sequence.  When you type C, ZIPKEY asks for the maximum
  1718. city width-- you should give the field width 17.  Then ZIPKEY
  1719. tells you to type F if you need padding, and N if you don't.  You
  1720. don't need padding, so you type N.  The complete specification
  1721. you type, including the terminating *, is
  1722.  
  1723. {Enter}C17N{Enter}AZ{Enter}T-*
  1724.  
  1725.  
  1726. Multiple Hotkeys
  1727.  
  1728. As a more advanced option, ZIPKEY allows you to define multiple
  1729. hotkeys.  (The limit is 99, which I hope is much more than anyone
  1730. will ever need.)  When you are setting up a new configuration
  1731. file, ZIPKEY will invite you to define another hotkey after the
  1732. first hotkey specification is complete.  You may also add hotkeys
  1733. at any point later in time, by selecting the appropriate option
  1734. in the configuration editing menu.
  1735.                                                              3-13
  1736.  
  1737. In our example, you answer Y to the invitation to define another
  1738. hotkey, and name the second hotkey F12.  You again choose zipcode
  1739. source option 1, to pop up the window and wait for keyboard
  1740. input.  The keystroke return sequence for word processing,
  1741. including the 99 for unlimited width and the terminating *, is
  1742.  
  1743. C99, A Z{Enter}{Enter}*
  1744.  
  1745.  
  1746. Exit Keys
  1747.  
  1748. Here is another option for more advanced users.  We've just seen
  1749. that one way to specify different keystroke playback sequences is
  1750. to define a different hotkey for each sequence.  Another way is
  1751. to define one or more alternate ZIPKEY exit keys.
  1752.  
  1753. The normal method for confirming a zipcode and initiating key
  1754. playback is the Enter key.  If you have defined an alternate exit
  1755. key, you can press that alternate key instead of Enter to confirm
  1756. a zipcode.  The keystroke playback sequence is associated with
  1757. the exit key, and so remains the same no matter what hotkey was
  1758. used to invoke ZIPKEY.
  1759.  
  1760. Since the function keys (F1, F2, etc.) have no other meaning at
  1761. the moment you are about to exit the ZIPKEY window, they are good
  1762. choices for alternate exit keys.  Let's consider our
  1763. database-and-word processing example.  Suppose you don't have a
  1764. new-generation keyboard with F11 and F12 keys, and you don't like
  1765. exotic keystroke combinations.  So you wish to define only one
  1766. hotkey, numeric 5.  You decide that most addresses will be typed
  1767. in through the database manager, so you specify the database
  1768. return sequence {Enter}C17N{Enter}AZ{Enter}T-* for the hotkey.
  1769. It will be played back whenever the Enter key is used to confirm
  1770. a zipcode.  For word processing, you define an alternate exit key
  1771. F1, and specify the word-processing sequence C99,  A
  1772. Z{Enter}{Enter}* as the playback sequence for F1.  Then, whenever
  1773. an address is being typed to the word processor, it is confirmed
  1774. with F1 instead of Enter, to get the alternate playback.
  1775.  
  1776. You can, of course, have both multiple hotkeys and alternate exit
  1777. keys. This would be desirable, for example, if you wanted to have
  1778. a number of different input combinations (e.g. popup a window
  1779. immediately, take the zipcode from the screen, and several
  1780. different fixed keystroke combinations for different localities),
  1781. combined with a number of different playback sequences.  You
  1782. would define a different hotkey for each input possibility, and
  1783. an alternate exit key for each playback sequence (except the most
  1784. commonly-used sequence, which you specify for every hotkey as the
  1785. sequence used when Enter is pressed to confirm an entry).
  1786.                                                              3-14
  1787.  
  1788. Another usage of exit keys is to handle exceptional cases of
  1789. address entry. Two examples come to mind.  First, you may wish to
  1790. define an exit key for cases in which ZIPKEY's city doesn't match
  1791. the city you wish to type. Alas, the existence of zipcodes
  1792. covering two cities makes this a possibility. You can define a
  1793. key sequence that fills in everything except the city, and leaves
  1794. your cursor at the city field ready for entry.  That way you're
  1795. still saving keystrokes having used ZIPKEY.  Second, you could
  1796. define an exit key that facilitates the entry of 9-digit (ZIP+4)
  1797. codes.  ZIPKEY doesn't have any information about 9-digit
  1798. zipcodes-- that database would occupy over 25 megabytes, even
  1799. with ZIPKEY's rate of compression.  But you can define an exit
  1800. key to handle 9-digit address entry, by specifying a key sequence
  1801. that outputs a hyphen after the zipcode, and leaves the cursor
  1802. positioned after that hyphen.  Then you can type the first 5
  1803. digits to ZIPKEY, and the final 4 digits after the window pops
  1804. away.  In the coming years, when 9-digit zips appear in the
  1805. majority of addresses, you can make this sequence the main hotkey
  1806. sequence, and the 5-digit case a special exit key sequence.
  1807.  
  1808.  
  1809. Configuration Editing Menu
  1810.  
  1811. After your configuration specification is complete, ZIPKEY goes
  1812. to the configuration editing menu.  This menu allows you to
  1813. display and/or modify the configuration choices you have made.
  1814. There are the general options (memory, intermediate results,
  1815. numlock, slow keyboard, and all the window settings), the hotkey
  1816. names, and the exit key names and playback sequences.  Again, the
  1817. default values for the general options are the values you chose
  1818. before -- if you wish to change just a single option, choose
  1819. "General options" and then just keep pressing Enter until that
  1820. setting comes up.
  1821.  
  1822. Option 6 of the configuration menu allows you to generate your
  1823. own quick reference card. I do not provide a printed
  1824. quick-reference card as a part of the ZIPKEY software package,
  1825. because much of the useful information contained on that card is
  1826. specific to your configuration.  Instead, this option prepares a
  1827. quick-reference document containing the configuration
  1828. information, that you can print out yourself.  The file is
  1829. written as ZIPKEY.ZQR (ZQR stands for Zipkey Quick Reference) on
  1830. your current disk directory.  You may wish to edit the document
  1831. for formatting before printing it; or you can simply type to the
  1832. DOS prompt the command COPY ZIPKEY.ZQR PRN.
  1833.  
  1834.  
  1835. Named Configuration Files
  1836.  
  1837. The final action in the configuration process is to save the ZC
  1838. (Zipkey Configuration) file to your disk, so that ZIPKEY can read
  1839. it every time you install ZIPKEY in memory.  If you will have
  1840. only one configuration, you should use the default file name,
  1841. ZIPKEY.ZC.
  1842.                                                              3-15
  1843.  
  1844. You may, however, wish to have different configurations, either
  1845. for different users or for different computing contexts.  In our
  1846. example, this would be a third way to provide a different
  1847. playback sequence for the database manager vs. word processor
  1848. case.  You could configure a single hotkey for the database, and
  1849. name its ZC file DATA.ZC.  Then you could make another
  1850. configuration, named WORD.ZC, with a single hotkey for the word
  1851. processor. Before entering the database manager, you always load
  1852. ZIPKEY using DATA.ZC; before entering the word processor, you
  1853. load ZIPKEY using WORD.ZC.
  1854.  
  1855. When ZIPKEY asks you for the name of the configuration file, you
  1856. do not need to type the file-name extension .ZC, but you can if
  1857. you want.  Any extension other than .ZC will be ignored, and .ZC
  1858. will be used.
  1859.  
  1860. The ZQR file produced by the quick reference document generation
  1861. option is always named after the ZC file.  For example, the ZQR
  1862. file for DATA.ZC is DATA.ZQR.
  1863.  
  1864.  
  1865. Modifying Configuration Files
  1866.  
  1867. You may modify a configuration file at any time, by selecting
  1868. option 3 from the main menu, or by invoking ZIPKEY 3 from the DOS
  1869. command prompt.  You may also include the name of the ZC file in
  1870. the DOS command prompt.  For example, ZIPKEY 3 DATA will cause
  1871. ZIPKEY to look for DATA.ZC. If the ZC file you wish to modify is
  1872. not found, ZIPKEY initiates a brand new configuration sequence,
  1873. but the first choice (Memory model) give you the option of
  1874. retyping the configuration file name in case you mistyped it.
  1875.  
  1876. The default choice in the configuration editing menu tells you if
  1877. you have made any modifications to the file.  If it is 8 (abort,
  1878. exiting without saving), you haven't modified the file.  If it is
  1879. 7 (disk save), you have.
  1880.  
  1881.  
  1882. More Hotkey Examples
  1883.  
  1884. Here are the complete configuration specifications for a few of
  1885. the scenarios mentioned earlier in this chapter.  To work the
  1886. examples in this section, type ZIPKEY 3, then either walk through
  1887. a configuration process until you get to the "Hotkey name"
  1888. prompt, or select option 3, "Hotkey settings", of the
  1889. configuration editing menu.
  1890.  
  1891. First, let's configure so that the zipcode comes from the screen,
  1892. and the ZIPKEY window doesn't pop up at all if the zipcode is
  1893. found.  When prompted for the hotkey name, press the back-quote
  1894. key.  Select option 2, "From the zipcode near the current cursor
  1895. position on the screen."  Then type N, you don't want the screen
  1896. to pop up for confirmation if the zipcode is found.  For the
  1897. playback sequence, we'll assume that you want to erase the
  1898. just-typed zipcode and replace it with a letterhead: type
  1899.  
  1900. BBBBBC99, A Z{Enter}
  1901.                                                              3-16
  1902.  
  1903. and terminate with the * key.
  1904.  
  1905. Because we used a displaying key (the backquote key) as the
  1906. hotkey in the previous example, let's define another hotkey that
  1907. generates a backquote.  When prompted for the hotkey name, type
  1908. Alt-backquote.  Select option 3, fixed string, for the zipcode
  1909. source.  ZIPKEY then asks for the fixed specification, and you
  1910. type the double-quotes key " followed by {Enter} and the
  1911. terminating * key.  Your keystroke playback sequence then has
  1912. nothing to do with zipcodes: it is simply the backquote key
  1913. followed by the terminating * key.  Now if you need to generate a
  1914. back-quote, you can type Alt-backquote.
  1915.  
  1916. Next, let's handle the case in which a zipcode is typed twice:
  1917. once as a part of an identification code, and then later as a
  1918. part of the address.  When prompted for the hotkey name, type the
  1919. Z and the 1 keys simultaneously.  For the zipcode source, choose
  1920. option 1, "The operator types it in after the window is popped
  1921. up."  Since you used two non-shifting keys, one of the keys will
  1922. have been fed to your application program: you now wipe it out by
  1923. beginning the playback sequence with B.  Since the city and state
  1924. name aren't part of the identification code, the playback is just
  1925. the backspace and the zipcode: BZ followed by the terminating *
  1926. key.  Next you specify a second hotkey, named with the Z and 2
  1927. keys.  Since you are repeating the zipcode just looked up for the
  1928. identification code, you specify option 3, fixed string, as the
  1929. zipcode source.  ZIPKEY then asks for the fixed specification,
  1930. and you again type the double-quotes key " followed by {Enter}
  1931. and the terminating * key.  Then you type the keystroke playback
  1932. sequence: C17N{Enter}AZ{Enter}T- followed by the terminating *
  1933. key.
  1934.  
  1935. Finally, let's do an example in which we provide a fixed field on
  1936. a simple text editor.  The city field will be 19 characters wide,
  1937. starting at column 33 on a line, which is the fourth tab stop.
  1938. It will be followed by the state abbreviation and the zipcode.
  1939. For the hotkey name, press both Shift keys, then press the Z key.
  1940. Choose option 1 as the zipcode source.  For the playback
  1941. sequence, we assume that the Home key will put the cursor at the
  1942. start of the current line, so you can specify
  1943.  
  1944.    {Home}{Tab}{Tab}{Tab}{Tab}C19F A Z*
  1945.  
  1946. which will leave the cursor just beyond the zipcode.
  1947.  
  1948.  
  1949. Conclusion
  1950.  
  1951. This concludes the description of ZIPKEY configuration.  In the
  1952. next chapter we'll discuss how to arrange the ZC file together
  1953. with the other ZIPKEY files, so that ZIPKEY is permanently
  1954. available to you.
  1955.                                                              3-17
  1956.  
  1957. As you have seen, ZIPKEY has a wide array of options.  There is
  1958. often more than one method of handling a given configuration
  1959. requirement.  Which method you choose is often simply a matter of
  1960. personal taste.  If you are intimidated by the choices, then keep
  1961. things simple to start out with.  Like any complex program,
  1962. ZIPKEY will serve you best if you let yourself become familiar
  1963. with it before trying to exploit every feature.
  1964.  
  1965. CHAPTER 4   RUNNING MEMORY-RESIDENT ZIPKEY
  1966.  
  1967.  
  1968. This chapter assumes you have some familiarity with DOS concepts
  1969. and commands-- for example, it assumes you know what a
  1970. subdirectory is, and how to copy a file to a subdirectory.  If
  1971. you aren't very familiar with DOS (you run straight to your
  1972. word-processor and stay there when you turn your computer on),
  1973. you may need to have a DOS-knowledgeable person assist you.
  1974.  
  1975.  
  1976. Installing ZIPKEY as a Memory-Resident Program
  1977.  
  1978. In Chapter 3 we discussed how to create a ZC file to configure
  1979. ZIPKEY to your specific needs.  Once you have done so, you are
  1980. ready to run ZIPKEY as a memory-resident program.  You do so by
  1981. selecting option 4 of the ZIPKEY main menu.  You can also do so
  1982. directly from the DOS command prompt, by issuing the command
  1983.  
  1984.       ZIPKEY 4
  1985.  
  1986. followed by the Enter key.  If you have a ZC file named something
  1987. other than ZIPKEY, you include the ZC file name on the command
  1988. line.  For example, if you have a ZC file named DATA, either of
  1989. the following command lines will load ZIPKEY as a memory resident
  1990. program, using the configuration file DATA.ZC:
  1991.  
  1992.    ZIPKEY 4 DATA
  1993.    ZIPKEY DATA 4
  1994.  
  1995. The process of loading ZIPKEY as a memory-resident program causes
  1996. your computer to exit the ZIPKEY program, and return you to the
  1997. DOS command prompt.  You are now ready to run any other programs
  1998. you choose, but ZIPKEY is still in your computer's memory, ready
  1999. to be activated at any time by the hotkey or hotkeys you chose
  2000. when you configured ZIPKEY as described in Chapter 3.
  2001.  
  2002. As an example, let's assume you have defined a ZC file with the
  2003. two hotkeys we discussed in Chapter 3: one, F11, for use within
  2004. your database manager, and the other, F12, for use within your
  2005. word processor.  Having loaded ZIPKEY as a memory-resident
  2006. program, you can now enter either your database manager or your
  2007. word processor to see if ZIPKEY works.  You reenter your database
  2008. manager, just as you did before you configured ZIPKEY, to type in
  2009. a sample address.  Just as before, the database manager puts an
  2010. address template onto the screen.  You type in a sample name and
  2011. street address; but instead of typing the Enter that will advance
  2012. you to the city field, you type the F11 hotkey instead.  The
  2013. ZIPKEY window pops onto the screen, inviting you to type a
  2014. zipcode specification.  (If it doesn't, see the section "ZIPKEY
  2015. and Other Memory-Resident Programs", later in this chapter.)  You
  2016. may type any specification as described in Chapter 2.
  2017.                                                               4-2
  2018.  
  2019. For most business applications, you will already have the zipcode
  2020. available to you, and you will be using ZIPKEY to make the data
  2021. entry faster and more accurate.  You type in a zipcode, 31625,
  2022. and get the city Barney, GA for confirmation.  You confirm with
  2023. the Enter key.  Now, if you defined your keystroke playback
  2024. sequence to duplicate what you would have typed to your database,
  2025. you should see the city, state, and zip fields of your address
  2026. template filled with the correct values.
  2027.  
  2028. What do you do if the template is not filled correctly?  You need
  2029. to determine if you got the keystroke playback sequence right.
  2030. If the city/state/zip appears to be there but is in the wrong
  2031. fields, then it's likely that you got your cursor-positioning
  2032. keys wrong -- either too many or not enough.  You should repeat
  2033. the exact keystroke sequence used to enter city/state/zip, and
  2034. make sure that is the sequence specified to ZIPKEY's
  2035. configuration.  You can get a listing of what you specified by
  2036. printing out the ZQR (Zipkey Quick Reference) file that you can
  2037. create via option 7 of the ZIPKEY configuration editing menu.
  2038. For example, if you created ZIPKEY.ZQR, type the command
  2039.  
  2040.    COPY ZIPKEY.ZQR PRN
  2041.  
  2042. to the DOS command prompt, and the listing will be sent to your
  2043. printer.
  2044.  
  2045. If ZIPKEY appears to be playing back only every second or third
  2046. letter of the city/state/zip, then your program needs the
  2047. keyboard slowdown option, one of the general option settings of
  2048. the configuration.
  2049.  
  2050. In any case, if a configuration change needs to be made, follow
  2051. the instructions in the next section to reinstall a new
  2052. configuration.
  2053.  
  2054. Having checked out the database manager, you need to move on to
  2055. the word processor.  You exit the database and invoke the word
  2056. processor.  You type a sample name and street address.  Instead
  2057. of typing a city name, you press the F12 key, and the ZIPKEY
  2058. window pops up once again.  Now type 23054 to get the entry Fife,
  2059. VA.  When you press the confirming Enter key, the complete
  2060. specification Fife, VA 23054 appears, the cursor is positioned at
  2061. the second line below.  Again, if you didn't get the right
  2062. results, you need to figure out whether you got the playback
  2063. sequence right.
  2064.  
  2065.  
  2066. Correcting Your Configuration
  2067.  
  2068. If your check-out of memory-resident ZIPKEY revealed some changes
  2069. you need to make in the configuration, you may do so by typing
  2070.  
  2071.    ZIPKEY 3
  2072.                                                               4-3
  2073.  
  2074. followed by the ZC file name if it isn't ZIPKEY, to the DOS
  2075. command prompt.  The choice "General options" followed by several
  2076. presses of the Enter key will get you to the "Slow down keyboard"
  2077. option, which you can change to Y if your program was missing
  2078. regularly-spaced keystrokes.  You may wish to temporarily slow
  2079. down the keyboard even if this wasn't the problem, so that you
  2080. can more easily watch the playback to diagnose how you got the
  2081. sequence wrong.
  2082.  
  2083. The option "Hotkey settings" will change the keystroke playback
  2084. sequence for a specific hotkey.  You need to repeat the
  2085. specification sequence, giving the hotkey name, zipcode source,
  2086. and the corrected playback sequence.
  2087.  
  2088. When you have made your changes, you can type Enter to the ZIPKEY
  2089. configuration menu, to execute default option 7, the disk save,
  2090. which puts you back to the ZIPKEY main menu.   Press Enter again
  2091. to execute default option 4, to re-install ZIPKEY as a
  2092. memory-resident program.
  2093.  
  2094.  
  2095. Uninstalling ZIPKEY
  2096.  
  2097. You may reverse the ZIPKEY 4 command with option 7 of the main
  2098. menu, which can be executed directly from DOS with the ZIPKEY 7
  2099. command.  This option removes ZIPKEY from memory.  If there have
  2100. been no other memory-resident programs installed after ZIPKEY,
  2101. the memory occupied by ZIPKEY is freed back for your other
  2102. programs to use.  In some systems, such as those running
  2103. Sidekick, a short stub of 200-300 bytes must be retained by
  2104. ZIPKEY after uninstallation.
  2105.  
  2106.  
  2107.  
  2108. Re-installing a New Configuration
  2109.  
  2110. In most cases, you do not need to uninstall ZIPKEY in order to
  2111. reinstall a new configuration.  You can simply repeat the command
  2112. to install ZIPKEY as a memory resident program-- either option 4
  2113. from ZIPKEY's main menu, or the DOS command ZIPKEY 4 followed by
  2114. the ZC file name if it isn't ZIPKEY. You may re-install after you
  2115. have modified the ZC file already installed, or you may reinstall
  2116. to change ZC files.  ZIPKEY will detect that it was already
  2117. installed, and simply substitute the new configuration.  You'll
  2118. be back at the DOS command prompt, ready to invoke ZIPKEY within
  2119. your programs again.
  2120.  
  2121. There are only two situations in which you need to execute ZIPKEY
  2122. 7 to change configurations:
  2123.  
  2124. 1. If you change the location of ZIPKEY's database -- EMS memory
  2125.    vs. stay-on-disk vs. main memory -- this one change will be
  2126.    ignored when ZIPKEY is re-installed, and not take effect until
  2127.    after ZIPKEY is uninstalled.
  2128.                                                               4-4
  2129.  
  2130. 2. If the new ZC file is more than 256 bytes bigger than the
  2131.    first ZC file installed, ZIPKEY will tell you that the new ZC
  2132.    file is too big, and the new installation will not take
  2133.    effect.  ZC files are usually much smaller than 256 bytes, so
  2134.    unless you have unusually complicated configurations, you
  2135.    won't have this problem.  If you do, you should make sure that
  2136.    your largest ZC file is loaded first when your computer starts
  2137.    up.
  2138.  
  2139.  
  2140. Making ZIPKEY Permanently Available
  2141.  
  2142. The MS-DOS operating system has a mechanism that allows you to
  2143. specify that certain programs should be run every time your
  2144. computer is started.  You create a file called AUTOEXEC.BAT, on
  2145. the same disk drive from which the operating system is loaded.
  2146. If you have a hard disk system, this is usually drive C.
  2147. AUTOEXEC.BAT is a text file, containing lines that you might type
  2148. to the DOS command prompt to run programs.  Every time your
  2149. computer is started, MS-DOS reads the AUTOEXEC.BAT file and
  2150. pretends that the first commands you typed into your computer are
  2151. the commands in that file.  You can place a line into
  2152. AUTOEXEC.BAT, containing the command to load ZIPKEY as a
  2153. memory-resident program.  For example, if your ZC file is named
  2154. ZIPKEY, you simply place the line
  2155.  
  2156.    ZIPKEY 4
  2157.  
  2158. into your AUTOEXEC.BAT file.  If the ZC file is named DATA, you
  2159. place
  2160.  
  2161.    ZIPKEY 4 DATA
  2162.  
  2163. into AUTOEXEC.BAT.  You'll need a text editor to modify
  2164. AUTOEXEC.BAT.  Your word processor might do the job, as long as
  2165. you make sure that no word-processing control characters are
  2166. inserted -- most word processors have a "plain text" mode for
  2167. this.
  2168.  
  2169.  
  2170. ZIPKEY and Other Memory-Resident Programs
  2171.  
  2172. If you have other memory-resident programs installed at the same
  2173. time as ZIPKEY, you may need to experiment a little to determine
  2174. the best order in which to load the programs.  Memory-resident
  2175. programming is extremely tricky, and the techniques are
  2176. non-standardized and poorly documented.  A resident program must
  2177. monitor all the keyboard's signals to the computer, while passing
  2178. those signals to all the other resident programs as well.  I
  2179. believe ZIPKEY does a good job of this, passing along every
  2180. keystroke received except for its own hotkeys.  But other
  2181. memory-resident programs may not do a good job: they may prevent
  2182. certain keystrokes from being seen by ZIPKEY, so that a ZIPKEY
  2183. hotkey won't pop up ZIPKEY's window.  They may even become
  2184. extremely confused and freeze up your computer when ZIPKEY is
  2185. invoked, forcing you to shut down and restart the computer.
  2186.                                                               4-5
  2187.  
  2188. A specific example: Borland's Sidekick (the program SK) insists
  2189. that you install it after other resident programs such as ZIPKEY,
  2190. and with good reason.  You can get away with running one program
  2191. after SK that monitors keystrokes directly, but if you run two
  2192. such programs, SK locks out the first program and usually locks
  2193. out your keyboard as well.  So if you run ZIPKEY after SK, and
  2194. then run a text editor such as BRIEF or XYWrite, your computer
  2195. locks up.  If you make sure ZIPKEY appears before SK in your
  2196. AUTOEXEC.BAT file, there is no such problem.
  2197.  
  2198. A reverse example: Borland's SUPERKEY program must be run before
  2199. ZIPKEY. If you run SUPERKEY after ZIPKEY, the last keystroke you
  2200. typed to ZIPKEY's pop-up window (typically Enter) will be seen by
  2201. your program as well.
  2202.  
  2203. If ZIPKEY works in its demonstration mode (ZIPKEY 2), but not in
  2204. memory-resident mode (ZIPKEY 4), you should try ZIPKEY with all
  2205. other memory-resident programs removed.  You do this by renaming
  2206. your AUTOEXEC.BAT file to something else. For example, if your
  2207. current directory contains AUTOEXEC.BAT, you can issue the
  2208. command
  2209.  
  2210.    REN AUTOEXEC.BAT AUTOEXEC
  2211.  
  2212. to temporarily remove the .BAT extension from the file.  Then
  2213. shut down and restart your computer.  When the computer is
  2214. restarted, install ZIPKEY as a memory-resident program, and try
  2215. to invoke it with a hotkey.  If ZIPKEY now works, you know that
  2216. some other memory-resident program is interacting poorly with
  2217. ZIPKEY.  You can invoke the other memory-resident programs one at
  2218. a time, trying ZIPKEY after each one, to find the culprit. It's
  2219. possible that they will all load successfully and ZIPKEY will
  2220. still work -- in that case, you simply place the ZIPKEY
  2221. invocation at the start of the AUTOEXEC.BAT file, so it is loaded
  2222. first.
  2223.  
  2224. When you have sorted things out, don't forget to rename your
  2225. AUTOEXEC file back to AUTOEXEC.BAT.
  2226.  
  2227.  
  2228. Finding ZIPKEY Files on Your Disk
  2229.  
  2230. When you set up ZIPKEY to be permanently available, you need to
  2231. make sure that the ZIPKEY files are placed on your disk where
  2232. they can be found.  This section describes how to do so.
  2233.  
  2234. Normally, when you give the name of a disk file to your computer,
  2235. you must let the computer know where it can find the file.  If
  2236. the file is on a floppy drive, you give the letter of the drive;
  2237. for example, A:ZIPKEY.OVL.  If the file is on a hard disk drive,
  2238. you might also need to name a subdirectory on the drive; for
  2239. example, C:\DOS\ZIPKEY.OVL.  To reduce this burden, DOS maintains
  2240. a "current drive" and "current directory", which act as the
  2241. defaults if you don't give a drive letter or subdirectory.  For
  2242. example, the commands
  2243.                                                               4-6
  2244.  
  2245.     C:
  2246.     CD \DOS
  2247.  
  2248. make C the current drive and \DOS the current directory, so you
  2249. can refer to ZIPKEY.OVL instead of C:\DOS\ZIPKEY.OVL.
  2250.  
  2251. DOS's command processor adds an additional embellishment to the
  2252. current-drive-and-directory concept.  When you issue a command
  2253. such as ZIPKEY to DOS, it will look for the program file
  2254. ZIPKEY.COM first in the current directory.  If it doesn't find
  2255. ZIPKEY.COM there, it can be instructed to look in other default
  2256. directories, until ZIPKEY.COM is found.  You specify the list of
  2257. other default directories by the PATH (or SET PATH=) command,
  2258. placed into your AUTOEXEC.BAT file.  For example, your
  2259. AUTOEXEC.BAT file might contain the line
  2260.  
  2261.     PATH C:\DOS;C:\WP
  2262.  
  2263. or the equivalent line
  2264.  
  2265.     SET PATH=C:\DOS;C:\WP
  2266.  
  2267. to specify that programs may be found in the directories C:\DOS
  2268. and C:\WP as well as the current directory.
  2269.  
  2270. For convenience, ZIPKEY also recognizes the PATH command to find
  2271. its auxiliary files: ZIPKEY.OVL and the ZC file.  For example, if
  2272. your AUTOEXEC.BAT does contain the previously-mentioned PATH
  2273. specification, you may place ZIPKEY.COM, ZIPKEY.OVL, and your ZC
  2274. files into the C:\DOS subdirectory.  Just make sure that the PATH
  2275. command in your AUTOEXEC.BAT comes before your ZIPKEY command.
  2276. Then you won't have to worry about what the current directory is
  2277. when ZIPKEY is invoked.
  2278.  
  2279. Alternatively, if you want to keep ZIPKEY by itself on your disk,
  2280. you can either add ZIPKEY's subdirectory to the PATH command, or
  2281. make ZIPKEY's directory the current directory at the time ZIPKEY
  2282. is invoked, with a sequence such as
  2283.  
  2284.    CD \ZIPKEY
  2285.    ZIPKEY 4
  2286.    CD \
  2287.  
  2288. which makes \ZIPKEY the current directory, invokes ZIPKEY, and
  2289. then restores the root directory \ as the current directory.
  2290. \ZIPKEY should be a subdirectory that contains all the files
  2291. \ZIPKEY\ZIPKEY.COM, \ZIPKEY\ZIPKEY.OVL, and \ZIPKEY\*.ZC.
  2292.  
  2293. Note that you must change the current directory if the ZIPKEY
  2294. files are not in a PATH directory.  You cannot replace sequence
  2295. in the previous paragraph to
  2296.  
  2297.    ZIPKEY\ZIPKEY 4
  2298.  
  2299. because ZIPKEY won't be able to find its ZIPKEY.OVL or ZC file.
  2300.                                                               4-7
  2301.  
  2302. The only crucial factor here is the file-finding situation at the
  2303. time ZIPKEY is installed (the ZIPKEY 4 command).  After that, you
  2304. may change the current drive and/or directory to anything you
  2305. want, and ZIPKEY will always find the files it needs.  The only
  2306. exception: if you run ZIPKEY from a floppy disk and you have
  2307. configured ZIPKEY to take its data from the disk, you cannot
  2308. remove the disk containing ZIPKEY.OVL-- it must still be there so
  2309. ZIPKEY can read it.
  2310.  
  2311. When deciding whether to place ZIPKEY into a PATH directory, you
  2312. may wish to consider the ease with which you would like ZIPKEY to
  2313. be invoked for modifying and reloading configurations.  With
  2314. ZIPKEY in a PATH directory, it can be invoked at any time without
  2315. changing the current directory.  If you modify an existing ZC
  2316. file, ZIPKEY will find and rewrite the file wherever it is.  (New
  2317. ZC files are always written to the current directory.)  This is a
  2318. powerful and convenient feature.  On the other hand, if you have
  2319. untutored users on your computer for which you consider such
  2320. power too dangerous, you may deliberately place ZIPKEY in a
  2321. non-PATH directory, to make careless modifications a little more
  2322. difficult.
  2323.  
  2324.  
  2325. Installing Files on a Network
  2326.  
  2327. If you set up your system so that ZIPKEY.OVL is accessed over a
  2328. network, there is an additional optimization you can make: after
  2329. copying ZIPKEY.OVL to its permanent location, you can execute the
  2330. DOS command
  2331.  
  2332.    ATTRIB +R ZIPKEY.OVL
  2333.  
  2334. which makes ZIPKEY.OVL a read-only file.  This allows your
  2335. computer to buffer data without worrying about whether another
  2336. computer has changed the file.  The result is that access is
  2337. speeded up when the same disk sector is read consecutive times.
  2338.  
  2339. CHAPTER 5   GENERATING AN ORDER FORM
  2340.  
  2341.  
  2342. Automatic Order-Form Generation
  2343.  
  2344. Because ZIPKEY is widely available on an evaluation basis, I felt
  2345. it necessary to make it easy for people to realize that ZIPKEY
  2346. isn't free.  So ZIPKEY has a special option 5 on its main menu to
  2347. generate an order for based on your usage, disk requirements, and
  2348. method of payment.  You may also execute this option directly
  2349. from the DOS command prompt, by issuing the command
  2350.  
  2351.    ZIPKEY 5
  2352.  
  2353. followed by the Enter key.  You'll also be invited to generate an
  2354. order form when installing ZIPKEY in memory (using the ZIPKEY 4
  2355. command), in two circumstances:
  2356.  
  2357. 1. If your data is 13 or more months old, you'll be warned that
  2358.    it's out of date.  The postal service regularly makes changes
  2359.    to its zipcodes, so that you need fresh data to insure
  2360.    continued accuracy.  I'll be releasing new ZIPKEY.OVL files
  2361.    based on those changes monthly.  You are required to
  2362.    resubscribe and receive a new disk at least once a year; and
  2363.    you can elect to receive disks more often if you wish.
  2364.  
  2365. 2. If you are running the evaluation version of ZIPKEY, and it is
  2366.    now the second month or later following the first creation of
  2367.    your ZC file, you'll be reminded that your evaluation period
  2368.    has expired, and invited to fill out an order form.
  2369.  
  2370. In either case, if you choose Y to the order-form invitation, you
  2371. will initiate the interactive session described in this chapter,
  2372. after which ZIPKEY will install itself as intended, and
  2373. AUTOEXEC.BAT (if that's where ZIPKEY was invoked from) will
  2374. complete itself.
  2375.  
  2376. If you press N to the invitation, the order-form procedure is
  2377. skipped, and the computer continues normally, installing ZIPKEY
  2378. which will work just fine.  I'm not going to beat you over the
  2379. head with a club; I'm trusting that you'll answer Y eventually.
  2380.  
  2381.  
  2382. ZIPKEY's Schedule of Prices
  2383.  
  2384. The pricing scheme for ZIPKEY is a little unusual in that it
  2385. involves the maximum, not the sum, of two fees.  The basic,
  2386. single-keyboard registration is $30, which buys you a printed
  2387. manual, a disk, and a year's license to run ZIPKEY in
  2388. memory-resident mode.  I felt that if you want disks more often
  2389. than once a year, you should pay more.  And if you wanted to
  2390. license more keyboards you should pay more.  But I also felt that
  2391. if you chose either price-increasing option, you should
  2392. automatically be entitled to the other at no extra cost.  I can't
  2393. explain it beyond that-- it's simply what seems fair to me.
  2394. Hopefully I can implement this scheme without too much confusion,
  2395. thanks to ZIPKEY's ability to figure out your subscription price
  2396. for you.
  2397.                                                               5-2
  2398.  
  2399. So your subscription fee is the greater of two qualifying
  2400. amounts: the materials fee and the license fee.
  2401.  
  2402. The materials fee is $25 for every diskette mailed to you, plus
  2403. $5 for every printed manual mailed to you.  You may copy the
  2404. contents of a single disk onto all computer systems for which you
  2405. have licensed ZIPKEY, so you do not need to order multiple copies
  2406. of the same diskette.
  2407.  
  2408. The license fee depends on the number of keyboards accessing
  2409. ZIPKEY.  Keyboards using ZIPKEY only in its demonstration mode
  2410. (ZIPKEY 2) have a one-time, perpetual license fee fee of $10.
  2411. Keyboards using ZIPKEY as a memory-resident program (hotkeys, key
  2412. playback, and/or program interface) have a sliding scale of
  2413. annual fees: $25 for the first keyboard, $20 each for the second
  2414. and third keyboards, $15 each for the next five keyboards, and
  2415. $10 each for all subsequent keyboards.
  2416.  
  2417. Again, the total charge is the maximum, NOT the sum, of the
  2418. materials and license fees.  This means, for example, that if you
  2419. would like to receive disks quarterly (materials fee $100), you
  2420. may license 5 memory-resident keyboards (license fee $95) for no
  2421. extra charge.  Conversely, if you license a lot of keyboards, you
  2422. may be able to receive disks more often for no extra charge.
  2423.  
  2424.  
  2425. Gathering Your Order Information
  2426.  
  2427. Before answering ZIPKEY's order form questions, you should take a
  2428. census of the number of keyboards you wish to license.  (I refer
  2429. to keyboards, not computers, to resolve questions raised by
  2430. networks.)  The non-resident keyboards are those from which
  2431. ZIPKEY is accessible, and from which occasional ZIPKEY 2 commands
  2432. are issued to look up zipcodes in demonstration mode, but which
  2433. the ZIPKEY 4 command is never issued.  The resident keyboards are
  2434. those for which ZIPKEY 4 is used, to install ZIPKEY in memory,
  2435. and use any or all of the following: hotkeys, keystroke playback,
  2436. or the programmatic interface.  If you use the programmatic
  2437. interface to produce an unpacked zipcode database file from
  2438. ZIPKEY.OVL, then you must also license any keyboards that access
  2439. that database file, even if they don't run ZIPKEY directly.
  2440.  
  2441. You should also decide how you will pay for your order, by
  2442. obtaining either a purchase order number or a credit card number
  2443. (Visa, Mastercard, or American Express), or by seeing to it that
  2444. you can obtain a prepaid check.  Keep in mind that you must be
  2445. either an established customer, a Fortune 1000 corporation, an
  2446. accredited school, or a government agency to issue a non-prepaid
  2447. purchase order.  Also, there is a $5 surcharge for non-prepaid
  2448. purchase orders under $100.
  2449.                                                               5-3
  2450.  
  2451. Answering the Order-Form Questionnaire
  2452.  
  2453. Now you're ready to answer the order-form questionnaire.  You'll
  2454. first be asked the number of non-resident, then resident
  2455. keyboards you are licensing. If this is a simple, one-keyboard
  2456. registration, you'll answer 1 for one of them and 0 for the
  2457. other.  If you are renewing a license, you don't need to
  2458. redeclare the non-resident keyboards-- their license is
  2459. permanent.  You do need to redeclare the resident keyboards.
  2460.  
  2461. What about keyboards that change resident vs. non-resident
  2462. status?  You declare the newly resident keyboards, and not the
  2463. newly non-resident ones.
  2464.  
  2465. Next, ZIPKEY asks for the number of printed manuals you'd like.
  2466. You may order any number from zero up to the number of keyboards
  2467. being licensed.
  2468.  
  2469. Next, ZIPKEY asks for the number of years you are paying for.  I
  2470. expect almost everyone to answer 1 to this question; but I myself
  2471. like to pay off my utilities bills for months in advance, so
  2472. maybe somebody out there will be like that.
  2473.  
  2474. ZIPKEY then asks for the number of disks per year to be
  2475. delivered.  This number multiplied by the previous number gives
  2476. the total number of disks you are paying for with this order.
  2477. You'll get one disk immediately, and the rest in evenly-spaced
  2478. periods.  The disk to be shipped exactly one year from now is
  2479. part of next year's order.
  2480.  
  2481. You are then give a choice of disk type.  Choice 1 is the
  2482. older-generation, 360K flexible-sleeve floppy.  Choice 2 is the
  2483. newer (PS/2 style) hard-shell, 720K disk.
  2484.  
  2485. You are then prompted for your name, address, and telephone
  2486. number, followed by the choices for method of payment.  If you
  2487. choose a credit card or purchase order number, you'll be prompted
  2488. for the additional information.
  2489.  
  2490. After the payment information is given, the order form is
  2491. complete.  The only remaining choice is whether to send the form
  2492. directly to the printer, or to a disk file or device.  Make sure
  2493. your printer is turned on before sending it to the printer.
  2494.  
  2495.  
  2496. Possible Amendments to the Total Price
  2497.  
  2498. The order form that ZIPKEY outputs includes the total price of
  2499. the package calculated for you.  There are only two things that
  2500. could add to the total:
  2501.  
  2502. 1. If your shipping address is in Indiana and you are not exempt,
  2503.    you must add sales tax (5% at this writing) to the total.
  2504.  
  2505. 2. If your shipping address is overseas, add $2 per disk and $3
  2506.    per manual to cover extra postage.  There is no extra charge
  2507.    for postage on domestic orders.
  2508.  
  2509. CHAPTER 6   PROGRAMMATIC INTERFACE
  2510.  
  2511.  
  2512. If you are writing a computer program and wish to call ZIPKEY
  2513. from your program, you may do so.  The complete descriptions of
  2514. the function calls, with sample calling code, is given in the
  2515. file ZPROG.DOC on your disk.  The following chart gives the
  2516. overview of calls to ZIPKEY's INT 179 (hex B3), as a quick
  2517. reference when you are writing your code:
  2518.  
  2519. INT 179 with AH=
  2520.  
  2521. 070H   ZK_VERSION sets AX,CL,DX to version information
  2522. 071H   ZK_ABBR_ST converts abbr. BX to state code AL
  2523. 072H   ZK_ST_ABBR converts state code AL to abbr. BX
  2524. 073H   ZK_ST_NAME outputs state BL's name to ES:DI
  2525. 074H   ZK_ZIP_DIGITS outputs zipcode DXCH to ES:DI
  2526. 075H   ZK_ZIP_ST sets AL=state BX=area code for zipcode DXCH
  2527. 076H   ZK_ZIP_CITY outputs city name DXCH to ES:DI
  2528. 077H   ZK_ZIP_KEYS plays exit key #BX for zipcode DXCH
  2529. 078H   ZK_STCITY_ZIP sets BH to #cities DS:SI for state BL
  2530. 079H   ..or ZK_CITY_ZIP for any state starting with BL
  2531. 07AH   ..then ZK_CASE_ZIP sets DXCL-CH to case #BL
  2532. 07BH   ZK_SAVE sets BX,CX,DX to ZIPKEY's context; BL=city width
  2533. 07CH   ..then ZK_RESTORE restores ZIPKEY's context
  2534. 07DH   ZK_POPUP pops up as if hotkey #BL were pressed
  2535. 07EH   ZK_REGION_CITY outputs region DX to ES:DI; sets AL=state
  2536. 07FH   ZK_SWITCH BL=0/1/2/3 en/dis/show/togg hotkeys; 6=newprog
  2537. 080H   ZK_AREA_ST converts area code BX to state AL, 1st region DX
  2538.  
  2539. If Carry is returned, then if AL=
  2540.  
  2541.    0FDH  ZIPKEY is busy.
  2542.    0FEH  Illegal AH function number.
  2543.    0FFH  Search failed without even a suggested value.
  2544.  
  2545. INDEX                                                  7-1
  2546. A-specifier for playback, 3-11
  2547. Aaron, AL, 2-9
  2548. abbreviating a city name, 3-11
  2549. abbreviation, 2-letter, playback, 3-11
  2550. abbreviations in database, 2-8
  2551. abbreviations, state, finding, 2-5
  2552. aborting a search (Esc), 2-1
  2553. about the author, 1-8
  2554. AboveBoard, 3-3
  2555. address, my, 1-8
  2556. aligning to a city name, 3-12
  2557. Alt key in hotkeys, 3-7
  2558. Alt-backquote hotkey example, 3-15
  2559. alternate exit keys, 3-13
  2560. alternate hotkeys, 3-12
  2561. alternate window, 3-5
  2562. amendments to total price, 5-3
  2563. answering the order-form questionnaire, 5-3
  2564. ARC files, 1-7
  2565. area code playback, 3-11
  2566. area code search, 2-8
  2567. area code sources, 1-6
  2568. arrow keys during configuration, 3-5
  2569. arrow keys during state/city search, 2-7
  2570. arrow keys during zipcode search, 2-4
  2571. ASP Ombudsman, 1-9
  2572. asterisk during fixed key entry, 3-10
  2573. asterisk, literal playback, 3-12
  2574. atlas sources, 1-5
  2575. ATTRIB command, use with networks, 4-7
  2576. author, contacting, 1-8
  2577. AUTOEXEC.BAT file, 4-4
  2578. automatic ZIPKEY installation, 4-4
  2579. availability, permanent, 4-4
  2580. B-specifier for playback, 3-11
  2581. back-quote hotkey, 3-7
  2582. backing up your data, 1-3
  2583. backquote hotkey example, 3-15
  2584. backspace and escaped hotkey code, 3-7
  2585. backspace generation on playback, 3-11
  2586. Barney, GA example, 4-2
  2587. BBS distribution, 1-7
  2588. big cities, zipcodes for, 2-6
  2589. biography, 1-8
  2590. blank-padding example , 3-16
  2591. blank-padding of city name, 3-11
  2592. Borland Reflex, 3-10
  2593. Borland TSRs, 4-5
  2594. Borland, 3-5
  2595. bugs, reporting, 1-9
  2596. bulletin boards, my, 1-9
  2597. buying a copy of ZIPKEY, 5-1
  2598. C-specifier for playback, 3-11
  2599. calling ZIPKEY from programs, 6-1
  2600. cancelling a window (Esc), 2-1
  2601. capacity of cities display, 2-5
  2602. case sensitivity, 2-5
  2603.                                                        7-2
  2604. charges for ZIPKEY, 5-1
  2605. cities display capacity, 2-5
  2606. cities, guessed, 2-3
  2607. cities, large, zipcodes for, 2-6
  2608. cities, listing, 2-3
  2609. city name in playback, 3-11
  2610. city name, abbreviating, 3-11
  2611. city name, changing from ZIPKEY's, 3-14
  2612. city name, longest in database, 3-11
  2613. city only search, 2-7
  2614. city-only failed find, 2-7
  2615. city/state/zip format, 3-10
  2616. club, beat over the head with, 5-1
  2617. color of window, 3-6
  2618. color vs. monochrome video modes, 3-6
  2619. COM vs. EXE file, 1-6
  2620. compilation copyright, 1-6
  2621. completing a zipcode, 2-6
  2622. conditions for distribution, 1-4
  2623. Condor compatibility, 3-4
  2624. configuration editing menu, 3-14
  2625. configuration, creating, 3-2
  2626. configuration, large, 4-4
  2627. configurations, re-installing, 4-3
  2628. configuring ZIPKEY, 3-1
  2629. contacting me, 1-8
  2630. contents, 0-2
  2631. copyright of database, 1-5
  2632. correcting hotkeys, 4-3
  2633. correcting keyboard slowdown, 4-3
  2634. correcting your configuration, 4-2
  2635. Ctrl key in hotkeys, 3-7
  2636. current drive and directory, 4-5
  2637. cursor during next-state search, 2-7
  2638. customizing ZIPKEY, 3-1
  2639. data source, changing, 4-3
  2640. data, possible sources of, 3-3
  2641. database example, playback, 3-12
  2642. database manager example, 3-1
  2643. database, sources and copyright, 1-5
  2644. Dear example, 3-12
  2645. default options during configuration, 3-2
  2646. demonstration mode, 2-1
  2647. Desqview awareness, 3-3
  2648. determining needs, 3-1
  2649. differences, evaluation vs. registered, 1-6
  2650. directories, sources, 1-6
  2651. disabling other resident programs, 4-5
  2652. disk storage of zipcodes, 3-3
  2653. diskettes, charge for, 5-2
  2654. disks, 3.5" vs. 5.25", 5-3
  2655. disks, number ordered, 5-3
  2656. display of hotkey name, wrong, 3-8
  2657. display of intermediate results, 3-4
  2658. distribution conditions, 1-4
  2659. distribution houses, shareware, 0-2
  2660. distribution naming conventions, 1-7
  2661.                                                        7-3
  2662. down-arrow during city search, 2-7
  2663. down-arrow during zipcode search, 2-4
  2664. East, unabbreviation, 2-8
  2665. editing menu, configuration, 3-14
  2666. electronic mail, 1-9
  2667. EMS memory, 3-3
  2668. EMS mode, problems with, 3-3
  2669. Enter key during configuration choices, 3-2
  2670. Enter key during fixed key entry, 3-10
  2671. Enter key during playback specification, 3-12
  2672. Enter key in demonstration mode, 2-1
  2673. error codes, ZIPKEY program, 6-1
  2674. errors on city name, coping with, 3-14
  2675. escaping from a window, 2-1
  2676. evaluation copy of ZIPKEY, 1-3
  2677. evaluation period, length of, 1-4
  2678. evaluation vs. registered differences, 1-6
  2679. EXE vs. COM file, 1-6
  2680. existing zipcode, looking up, 3-8
  2681. exit keys, alternate, 3-13
  2682. expiration of evaluation, 5-1
  2683. expiration of subscription, 5-1
  2684. exploration keys, 2-4
  2685. F-specifier example , 3-16
  2686. F-specifier following city width, 3-11
  2687. F11 and F12 as hotkeys, 3-7
  2688. fees for using ZIPKEY, 5-1
  2689. Fife, VA example, 4-2
  2690. files, how ZIPKEY finds, 4-5
  2691. finding a city only, 2-7
  2692. finding state abbreviations, 2-5
  2693. finding state/city, 2-5
  2694. finding zipcodes, 2-2
  2695. finding ZIPKEY files on your disk, 4-5
  2696. fixed field example, 3-16
  2697. fixed zipcode, 3-9
  2698. fixed-keystroke source for hotkey, 3-9
  2699. format of city/state/zip playback, 3-10
  2700. Fort, unabbreviation, 2-8
  2701. frequency of disk updates, 5-3
  2702. full name of state, playback, 3-12
  2703. function keys during configuration, 3-6
  2704. function keys, exiting ZIPKEY with, 3-13
  2705. gathering order information, 5-2
  2706. general option settings, definition, 3-6
  2707. generating an order form, 5-1
  2708. graphics mode usage, 3-10
  2709. guessed cities, 2-3
  2710. Home key, 2-1
  2711. hotkey configuration, 3-6
  2712. hotkey echoing, wrong display, 3-8
  2713. hotkey name, 3-6
  2714. hotkey, definition, 1-2
  2715. hotkeys, more than one, 3-12
  2716. how to contact me, 1-8
  2717. how to create a ZC file, 3-2
  2718. how to order, 5-1
  2719.                                                        7-4
  2720. incompatible programs with ZIPKEY, 1-3
  2721. indented addresses, 3-12
  2722. installing files on a network, 4-7
  2723. Intel, 1-8
  2724. Intel, 3-3
  2725. interfacing your programs to ZIPKEY, 6-1
  2726. interference of other programs, 4-4
  2727. intermediate results for zipcode, 2-2
  2728. intermediate results, city-only, 2-7
  2729. intermediate results, suppressing, 3-4
  2730. interrupt, ZIPKEY, 6-1
  2731. invoice, generating, 5-1
  2732. Jeffersonville example, 2-3
  2733. keyboard interference, 4-4
  2734. keyboard slowdown, 3-4
  2735. keyboards, licensing, 5-2
  2736. keystroke playback sequence, 3-10
  2737. keystrokes, determining, 3-1
  2738. King and Queen Court House, VA, 3-11
  2739. L-specifier for playback, 3-12
  2740. large cities, zipcodes for, 2-6
  2741. large configuration, changing to, 4-4
  2742. last-keystrokes source for hotkey, 3-10
  2743. Left vs. Right keys, 3-7
  2744. legal conditions for distribution, 1-4
  2745. legal terms, 1-3
  2746. length of city name, specifying, 3-11
  2747. length of subscription, 5-3
  2748. letters, fixed playback, 3-12
  2749. liabilities, 1-3
  2750. license length, 1-4
  2751. license, how to obtain, 5-1
  2752. LIM-EMS memory, 3-3
  2753. limitations, 1-2
  2754. listing cities, 2-3
  2755. listing regions, 2-2
  2756. literalizing during playback, 3-12
  2757. local zipcode option, 3-9
  2758. location of window, 3-5
  2759. longest city name in database, 3-11
  2760. looking up a city only, 2-7
  2761. looking up a zipcode, 2-1
  2762. looking up state abbreviations, 2-5
  2763. looking up state/city, 2-5
  2764. looking up zipcodes, 2-2
  2765. Lotus-Intel-Microsoft memory, 3-3
  2766. Louisville example, 2-3
  2767. lower vs. upper sensitivity, 2-5
  2768. mail, electronic, 1-9
  2769. main city of a region, 2-3
  2770. main memory for zip data, 3-3
  2771. main memory mode, problems with, 3-3
  2772. main menu option 2, 2-1
  2773. main menu option 3, 3-2
  2774. main menu option 4, 4-1
  2775. main menu option 5, 5-1
  2776. main menu option 7, 4-3
  2777.                                                        7-5
  2778. making ZIPKEY permanently available, 4-4
  2779. manual, overview, 1-1
  2780. manuals, charge for, 5-2
  2781. materials fee, 5-2
  2782. maximum city name size, 3-11
  2783. memory model, 3-3
  2784. memory model, changing, 4-3
  2785. memory requirements, 1-3
  2786. memory-resident mode, definition, 1-2
  2787. memory-resident mode, running, 4-1
  2788. memory-resident programs, other, 4-4
  2789. memory-resident use, configuring, 3-2
  2790. Microsoft Word 4.0 problem, 1-3
  2791. Microsoft Works, 1-3
  2792. Microsoft, 3-3
  2793. might-be cities, 2-3
  2794. missing characters, correcting, 3-4
  2795. missing playback keys, 4-2
  2796. modifications, see if you made, 3-15
  2797. modifying configuration files, 3-15
  2798. money, how to send, 5-1
  2799. monochrome vs. color video modes, 3-6
  2800. more hotkey examples, 3-15
  2801. Mount, unabbreviation, 2-8
  2802. moving from state to state, 2-7
  2803. multiple configuration files, 3-14
  2804. multiple hotkeys, 3-12
  2805. multiple-zipcode cities, 2-6
  2806. N-specifier following city width, 3-11
  2807. name of hotkey, wrong display, 3-8
  2808. named configuration files, 3-14
  2809. naming conventions for distribution, 1-7
  2810. National Park abbreviation, 2-8
  2811. networks, optimizing for, 4-7
  2812. nine-digit zipcodes, entering, 3-14
  2813. Nome example, 2-7
  2814. North, unabbreviation, 2-8
  2815. num 5 hotkey, 3-4
  2816. numlock on option, 3-4
  2817. Ombudsman, ASP, 1-9
  2818. operating requirements, 1-3
  2819. order form invitation, 1-7
  2820. order form, generating, 5-1
  2821. other memory-resident programs, 4-4
  2822. overseas postage, 5-3
  2823. overview of manual, 1-1
  2824. overview of ZIPKEY, 1-1
  2825. OVL file, how ZIPKEY finds, 4-6
  2826. OVL too new, 1-7
  2827. padding example, 3-16
  2828. padding of a city name, 3-11
  2829. paging keys, cities search, 2-5
  2830. paging keys, zipcode search, 2-4
  2831. PATH command, 4-6
  2832. PATH directory, putting ZIPKEY in, 4-7
  2833. payment for ZIPKEY, 5-1
  2834. permanent installation, 4-4
  2835.                                                        7-6
  2836. PgDn/PgUp in cities search, 2-5
  2837. PgDn/PgUp keys, zipcode search, 2-4
  2838. phone numbers of bulletin boards, 1-9
  2839. playback keys, missing, 4-2
  2840. playback of keystrokes, specifying, 3-10
  2841. playback unrelated to zipcodes, 3-15
  2842. pop-up window option for hotkey, 3-8
  2843. postage, adding overseas, 5-3
  2844. price notification policy, 1-4
  2845. price, amendments to, 5-3
  2846. prices, schedule of, 5-1
  2847. printed manuals, charge for, 5-2
  2848. printout of configuration (ZQR), 3-14
  2849. problems with main not disk mode, 3-3
  2850. programmatic interface, 6-1
  2851. prohibitions, specific, 1-5
  2852. Prokey 2.1 incompatibility, 1-3
  2853. ProKey, 3-5
  2854. publishing database, don't, 1-6
  2855. purchase orders, qualifying for, 5-2
  2856. question mark, 2-7
  2857. questionnaire, order-form, 5-3
  2858. quick-reference document, 3-14
  2859. quitting a search (Esc), 2-1
  2860. quotes mark at signon window, 2-8
  2861. R-specifier for playback, 3-12
  2862. ranges of zipcodes, 2-6
  2863. re-installing ZIPKEY, 4-3
  2864. read-only attribute, setting, 4-7
  2865. reference guide, definition, 1-1
  2866. references for database, 1-5
  2867. Reflex, Borland, 3-10
  2868. regions, definition of, 2-3
  2869. regions, listing, 2-2
  2870. registered copy of ZIPKEY, 1-3
  2871. registering, how to, 5-1
  2872. release date, 0-1
  2873. removing ZIPKEY from memory, 4-3
  2874. repeat last zipcode, 2-8
  2875. repeat zipcode, example, 3-15
  2876. repeat-zipcode hotkeys, 3-9
  2877. requirements for operation, 1-3
  2878. resident programs, disabling other, 4-5
  2879. resident programs, other, 4-4
  2880. resident vs. non-resident, changing, 5-3
  2881. restarting computer, when needed, 4-3
  2882. retreat to start of city name, 3-12
  2883. Right vs. Left keys, 3-7
  2884. Robinson, IL example, 2-5
  2885. running memory-resident ZIPKEY, 4-1
  2886. S-specifier for playback, 3-12
  2887. Saint(e), unabbreviation, 2-8
  2888. sales tax, adding, 5-3
  2889. samples for keystrokes, 3-1
  2890. schedule of prices, 5-1
  2891. screen distractions, 3-4
  2892. screen, zipcode from, 3-8
  2893.                                                        7-7
  2894. search: city to state/zip, 2-7
  2895. search: state/city to zip, 2-5
  2896. search: zip to city, 2-2
  2897. send money, how to, 5-1
  2898. SET PATH command, 4-6
  2899. shareware, nature of, 0-2
  2900. Shift keys in hotkeys, 3-7
  2901. shredded wheat example, 2-7
  2902. Sidekick and uninstall, 4-3
  2903. Sidekick must be after ZIPKEY, 4-5
  2904. Sidekick, 3-7
  2905. signon window, 2-1
  2906. signon window, quotes mark, 2-8
  2907. signon window, returning to, 2-1
  2908. six-months prohibition, 1-7
  2909. Sizzleware, 1-5
  2910. slow down keyboard, 3-4
  2911. SmartKey, 3-5
  2912. sources of database, 1-5
  2913. sources of ZIPKEY's data, 3-3
  2914. South, unabbreviation, 2-8
  2915. speed of zipcode lookup, 3-4
  2916. state abbreviations, finding, 2-5
  2917. state name playback, 3-12
  2918. state-and-city search, 2-5
  2919. streets, lack of, 1-2
  2920. subscribe, how to, 5-1
  2921. Superkey must be before ZIPKEY, 4-5
  2922. surcharge for purchase orders, 5-2
  2923. SysReq hotkey, 3-7
  2924. system requirements, 1-3
  2925. T-specifier for playback, 3-11
  2926. table of contents, 0-2
  2927. tax, adding, 5-3
  2928. telephone area code playback, 3-11
  2929. telephone area code search, 2-9
  2930. telephone directories, 1-5
  2931. telephone numbers, bulletin board, 1-9
  2932. too many cities display, 2-5
  2933. total price, amendments to, 5-3
  2934. trouble: computer freezes up, 4-4
  2935. trouble: many playback keys missed, 4-2
  2936. trouble: playback in wrong fields, 4-2
  2937. trouble: window doesn't pop up, 4-4
  2938. TSRs (memory resident programs), 4-4
  2939. Turbo Pascal, 3-5
  2940. tutorial, definition, 1-1
  2941. two-letter state abbreviation, playback, 3-11
  2942. typeahead in Word 4.0, 1-3
  2943. U. S. Census, 1-5
  2944. unabbreviation, 2-8
  2945. undefined zipcodes within ranges, 2-6
  2946. uninstalling ZIPKEY, 4-3
  2947. unpacked database, licensing, 5-2
  2948. unpacking the database, 1-6
  2949. up-arrow during city search, 2-7
  2950. up-arrow during zipcode search, 2-4
  2951.                                                        7-8
  2952. updates, frequency of, 5-3
  2953. upper vs. lower sensitivity, 2-5
  2954. Ventura Desktop Publisher, 3-10
  2955. version number with "e", 1-6
  2956. video modes: color vs. monochrome, 3-6
  2957. video screen, zipcode from, 3-8
  2958. West, unabbreviation, 2-8
  2959. Wettstein, Greg, 1-9
  2960. what ZIPKEY doesn't do, 1-2
  2961. width of city name, specifying, 3-11
  2962. window characteristics, 3-5
  2963. window prompts, 2-2
  2964. Worcester, MA example, 2-6
  2965. Word 4.0 typeahead, 1-3
  2966. word processor example, 3-2
  2967. Wordstar compatibility, 3-4
  2968. Works, Microsoft, 1-3
  2969. wrong city, coping with, 3-14
  2970. wrong display of hotkey name, 3-8
  2971. Z and C hotkey, 3-7
  2972. Z-specifier for playback, 3-11
  2973. ZC file, how to create, 3-2
  2974. ZC file, large, 4-4
  2975. ZC files, how ZIPKEY finds, 4-6
  2976. zero zipcode output, 2-9
  2977. zeroes to complete a zipcode, 2-6
  2978. ZIP files, 1-7
  2979. ZIP+4 codes, entering, 3-14
  2980. zip-to-city search, 2-2
  2981. zipcode from screen, 3-8
  2982. zipcode from screen, example, 3-15
  2983. zipcode playback, 3-11
  2984. zipcode source for a hotkey, 3-8
  2985. ZIPKEY 2 command, 2-1
  2986. ZIPKEY 3 command, 3-2
  2987. ZIPKEY 4 command, 4-1
  2988. ZIPKEY 5 command, 5-1
  2989. ZIPKEY 7 command, 4-3
  2990. ZIPKEY and other resident programs, 4-4
  2991. ZIPKEY configuration, 3-1
  2992. ZIPKEY in computer's memory, 3-3
  2993. ZIPKEY interrupt, 6-1
  2994. ZIPKEY.COM vs. ZIPKEY.EXE, 1-6
  2995. ZK_ program calls, 6-1
  2996. ZOO files, 1-7
  2997. ZQR file, 3-14
  2998. ZQR file, name of, 3-15
  2999.